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.3.0
Published
Jul 11, 2023
Platform
js/wasm
Imports
1 packages
Last checked
12 minutes ago

Tools for package owners.