instance method Function#defer
Function#defer(args...) → Number
Schedules the function to run as soon as the interpreter is idle.
A "deferred" function will not run immediately; rather, it will run as soon as the interpreter's call stack is empty.
Behaves much like window.setTimeout
with a delay set to 0
. Returns an
ID that can be used to clear the timeout with window.clearTimeout
before
it runs.