Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/next-tick/docs/types/index.d"

Index

Functions

Functions

Export assignment nextTick

  • nextTick(clbk: Function, ...args: Array<any>): void
  • Adds a callback to the "next tick queue".

    Notes

    • The queue is fully drained after the current operation on the JavaScript stack runs to completion and before the event loop is allowed to continue.

    Parameters

    • clbk: Function

      callback

    • Rest ...args: Array<any>

      arguments to supply to the callback upon invocation

    Returns void

    Example

    function beep() {
        console.log( 'boop' );
    }
    
    nextTick( beep );