Class AsyncOnceSealed

an object that will perform exactly one action.

Hierarchy

  • AsyncOnce

Constructors

Properties

Methods

Constructors

Properties

done_?: Completer<void>
ok_: boolean = false

Methods

  • calls the function f if and only if Do is being called for the first time for this instance of Once.

    Remarks

    In other words, given var once = new Once(), if once.do(f) is called multiple times, only the first call will invoke f, even if f has a different value in each invocation.

    Parameters

    Returns false | Promise<boolean>

Generated using TypeDoc