Documentation
¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Control ¶
type Control struct { Status Status Type string Interrupt bool Cancel context.CancelFunc Reaction chan struct{} }
Control allows for controlling the flow of the action
func NewController ¶
func (*Control) AllowInterrupt ¶
AllowInterrupt signifies that this action can be interrupted
func (*Control) WithCancel ¶
func (a *Control) WithCancel(cancel context.CancelFunc) *Control
WithCancel assigns a cancel context to the action
type Route ¶
func (*Route) AllowInterrupt ¶
Click to show internal directories.
Click to hide internal directories.