Class OnceSealed

an object that will perform exactly one action.

Hierarchy

  • Once

Constructors

Properties

Methods

Constructors

Properties

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 boolean

Generated using TypeDoc