cancel
Callable
Type parameters
- TContext: MachineContext
- TExpressionEvent: EventObject
- TParams: NonReducibleUnknown
- TEvent: EventObject
Parameters
sendId: ResolvableSendId<TContext, TExpressionEvent, TParams, TEvent>
The
id
of thesend(...)
action to cancel.
Returns CancelAction<TContext, TExpressionEvent, TParams, TEvent>
Cancels an in-flight
send(...)
action. A canceled sent action will not be executed, nor will its event be sent, unless it has already been sent (e.g., ifcancel(...)
is called after thesend(...)
action'sdelay
).