Documentation
¶
Overview ¶
Package startwindow coordinates the bounded parent-event relay used while a background managed tool reaches its Start boundary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrWindowClosed = errors.New("adk: background start event window is closed")
ErrWindowClosed is returned when a sender-backed start window has closed.
var ErrWindowTimeout = errors.New("adk: background start event window timed out")
ErrWindowTimeout is returned by Window.Wait when its positive timeout wins.
Functions ¶
func TrySend ¶
TrySend sends event through the open sender-backed window in ctx. The send is admitted atomically with the open check, but runs outside the window lock.
func WithSender ¶
func WithSender(ctx context.Context, sender EventSender) context.Context
WithSender installs a parent event sender capability in ctx.
Types ¶
type EventSender ¶
EventSender emits one event through the parent execution context retained by an open start window.
type Window ¶
type Window struct {
// contains filtered or unexported fields
}
Window represents one bounded explicit-background Start synchronization window. It retains the parent context only while the window is open.