Files
wazero/internal/close/close.go
2023-07-11 09:27:43 +08:00

14 lines
323 B
Go

// Package close allows experimental.CloseNotifier without introducing a
// package cycle.
package close
import "context"
// NotifierKey is a context.Context Value key. Its associated value should be a
// Notifier.
type NotifierKey struct{}
type Notifier interface {
CloseNotify(ctx context.Context, exitCode uint32)
}