Namespace goog.async.run.<THIS>
code »Fires the provided callback just before the current callstack unwinds, or as soon as possible after the current JS execution context.
Main
<THIS>
run ( callback, opt_context )Parameters |
---|
|
Classes
|
Show:
<THIS>
Fires the provided callback just before the current callstack unwinds, or as soon as possible after the current JS execution context.
<THIS>
run ( callback, opt_context )Parameters |
---|
|
|
Forces goog.async.run to use nextTick instead of Promise. This should only be done in unit tests. It's useful because MockClock replaces nextTick, but not the browser Promise implementation, so it allows Promise-based code to be tested with MockClock.
Initializes the function to use to process the work queue.
Run any pending goog.async.run work items. This function is not intended for general use, but for use by entry point handlers to run items ahead of goog.async.nextTick.
Reset the event queue.
The function used to schedule work asynchronousely.