Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AsyncScheduler

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

Hierarchy

Index

Constructors

Methods

Constructors

constructor

Methods

start

  • start(callback: () => void): void

stop

  • stop(): void

Static nextTick

  • nextTick(callback: () => void): void
  • 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.

        • (): void
        • Returns void

    Returns void

Generated using TypeDoc