[[AsyncScheduler]] enqueues the callback for the soonest available run of the event loop.

Hierarchy (View Summary)

Constructors

Methods

Constructors

Methods

  • Execute the provided callback on the next tick of the event loop. This is semantically equivalent to

    new AsyncScheduler(callback).start();
    

    but with less overhead.

    Parameters

    • callback: () => void

      the code to run.

    Returns void