package close

import "github.com/tetratelabs/wazero/internal/close"

Package close allows experimental.CloseNotifier without introducing a package cycle.

Index

Types

type Notifier

type Notifier interface {
	CloseNotify(ctx context.Context, exitCode uint32)
}

type NotifierKey

type NotifierKey struct{}

NotifierKey is a context.Context Value key. Its associated value should be a Notifier.

Source Files

close.go

Version
v1.7.0-pre.1
Published
Mar 9, 2024
Platform
js/wasm
Imports
1 packages
Last checked
10 hours ago

Tools for package owners.