defer

Function
since 0.1.0

Arguments

  • Function The function to defer.
  • ...* The arguments to invoke `func` with.

Returns

number the timer id.

Defers invoking the func until the current call stack has cleared. Any additional arguments are provided to func when it's invoked.

Example of Lodash _.defer

_.defer(function(text) {
  console.log(text);
}, 'deferred');
// => Logs 'deferred' after one millisecond.