Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Acknowledge ¶
Acknowledge reports that a handler has entered the runtime boundary. Calls after the first are no-ops.
func Complete ¶
Complete reports that a transport observed the handler finish. It releases an acknowledgment bound by WithAcknowledgment and leaves one bound by WithSuspensionAcknowledgment to its binder.
func WithAcknowledgment ¶
WithAcknowledgment binds a one-shot handler-invocation acknowledgment to ctx. The handler's first suspension or its completion releases it.
func WithSuspensionAcknowledgment ¶
WithSuspensionAcknowledgment binds a one-shot acknowledgment that only a suspension releases. A transport's completion report does not release it: the binder acknowledges a completed handler itself once the handler's result is published, so an awaiting continuation of a handler that never suspended runs before the caller admits later input.
Types ¶
type LifecycleError ¶
type LifecycleError struct {
Err error
}
LifecycleError preserves an invocation failure whose diagnostic belongs to the subprocess lifecycle handler. Callers still receive an error; the runner must not emit a second notification for the same failed connection.
func (*LifecycleError) Error ¶
func (e *LifecycleError) Error() string
func (*LifecycleError) Unwrap ¶
func (e *LifecycleError) Unwrap() error