CurrentActionSync
- class Communicator.Util.CurrentActionSync()
This is like
CurrentAction
, but theset()
function returns a promise. The returned promise is designed to reject if the set action is pended and another set is called before the action becomes live.
Methods
isIdle
- CurrentActionSync.isIdle()
- Return type
boolean
set
- CurrentActionSync.set(action)
Returned promise can reject if future calls are made. This is by design.
- Arguments
action (ActionLike) –
- Return type
Promise <void>