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

CurrentActionSync.isIdle()
Return type

boolean

set

CurrentActionSync.set(action)

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

Arguments
Return type

Promise <void>