CurrentActionSync

class Communicator.Util.CurrentActionSync()

This is like CurrentAction, but the set() 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


Methods

isIdle

Communicator.Util.CurrentActionSync.isIdle()
Return type

boolean

set

Communicator.Util.CurrentActionSync.set(action)

Returned promise can reject if future calls are made. This is by design.

Arguments
  • action (Communicator.Util.ActionLike()) –

Return type

Promise[void]