Wait
Variable: Wait
constWait:object
Defined in: packages/workflow/src/authoring.ts:97
Signals
Type Declaration
ForEvent()
ForEvent<
T>(_name,_options):Promise<T>
Wait for the signal name sent with key (Workflow.Signal): its payload is the result
Type Parameters
T
T = any
Parameters
_name
string
the event name
_options
options
allow?
string[]
user ids that may send it besides the launcher
key
string
key to match
timeout?
string
Duration after which the wait throws
Returns
Promise<T>
the signal payload