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
Published
Mar 14, 2024
Platform
linux/amd64
Imports
1 packages
Last checked
7 hours ago

Tools for package owners.