Example

bindProcessExit("scheduler_on_exit", function () {
_log.info("executing scheduled functions");
scheduler.executeAll();
});

or

scheduler.register();

Hierarchy

  • default

Constructors

Properties

postponeCounter: number = 0
registered: boolean = false
verbose: boolean = true

Methods

  • Add function with key to list

    Parameters

    • key: string

      existing key (duplicate) will be overwritten

    • value: (() => any)
        • (): any
        • Returns any

    Returns void

  • Execute functon in key and delete

    Parameters

    • key: string
    • deleteAfter: boolean = true

    Returns void

  • Add function to postpone, the functions will be executed every 5 items added

    Parameters

    • key: string
    • value: (() => any)
        • (): any
        • Returns any

    Returns void