node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »


Build Status

microTask - A best effort nextTick shim


Defers a task to aid with asynchronous processing in a single threaded environment.

microtask(task:Function, args:Array, context:Object)

Execute task on next event loop / tick

  • param Function task - the function to call
  • param Array args - array of arguments
  • param Object context - task context


   function myTask(a,b,c){
   // ...after next event tick ... => "Hello world!"