Function getIdleCallback

  • Returns the global requestIdleCallback function if available, which can be used to schedule work when there is free time in the event loop, or if the runtime does not support the requestIdleCallback it will return null.

    Returns RequestIdleCallback

    Since

    0.11.2