selenium-webdriver
Version:
The official WebDriver JavaScript bindings from the Selenium project
14 lines (13 loc) • 4.3 kB
HTML
<meta charset="UTF-8"><meta http-equiv="Content-Language" content="en" /><title>goog.async</title><link href="dossier.css" rel="stylesheet" type="text/css"><div id="main-wrapper"><input type="checkbox" id="sidenav-toggle" /><main><header><h1>Namespace goog.async</h1><a class="source" href="source/lib/goog/async/nexttick.js.src.html#l22">code »</a></header><section></section><div id="visibility-controls"><b>Show:</b><label for="show-public"><span><input type="checkbox" id="show-public" checked/></span>Public</label><label for="show-protected"><span><input type="checkbox" id="show-protected"/></span>Protected</label><label for="show-private"><span><input type="checkbox" id="show-private"/></span>Private</label></div><section id="static-functions"><h2>Global Functions</h2><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/async/nexttick.js.src.html#l58">code »</a><code class="type"><SCOPE></code> <span class="member"><a name="goog.async.nextTick">goog.async.nextTick</a> <span class="args">( callback, opt_context )</span></span></div><p>Fires the provided callbacks as soon as possible after the current JS
execution context. setTimeout(…, 0) takes at least 4ms when called from
within another setTimeout(…, 0) for legacy reasons.
This will not schedule the callback as a microtask (i.e. a task that can
preempt user input or networking callbacks). It is meant to emulate what
setTimeout(_, 0) would do if it were not throttled. If you desire microtask
behavior, use goog.Promise instead.</summary><div class="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>callback: <code class="type">function(this: SCOPE)</code><dd>Callback function to fire as soon as
possible.<dt>opt_context: <code class="type">SCOPE=</code><dd>Object in whose scope to call the listener.</dl></table></div></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/async/run.js.src.html#l30">code »</a><code class="type"><THIS></code> <span class="member"><a name="goog.async.run">goog.async.run</a> <span class="args">( callback, opt_context )</span></span></div><p>Fires the provided callback just before the current callstack unwinds, or as
soon as possible after the current JS execution context.</summary><div class="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>callback<dt>opt_context: <code class="type">THIS=</code><dd>Object to use as the "this value" when calling
the provided function.</dl></table></div></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/async/nexttick.js.src.html#l37">code »</a><span class="member"><a name="goog.async.throwException">goog.async.throwException</a> <span class="args">( exception )</span></span></div><p>Throw an item without interrupting the current execution context. For
example, if processing a group of items in a loop, sometimes it is useful
to report an error while still allowing the rest of the batch to be
processed.</summary><div class="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>exception</dl></table></div></details></div></div></section></main><nav id="topnav"><div><div id="menubutton"><label for="sidenav-toggle">Menu</label></div><form id="searchbox"><div><input type="search" placeholder="Search" tabindex="1"></div></form></div></nav><nav id="sidenav"><input type="checkbox" id="sidenav-types-ctrl" /><input type="checkbox" id="sidenav-files-ctrl" /><input type="checkbox" id="sidenav-modules-ctrl" /><a id="sidenav-overview"><div><h4>Overview</h4></div></a><div id="sidenav-types"><label for="sidenav-types-ctrl"><h4>Types</h4></label><i>Loading</i></div><div id="sidenav-modules"><label for="sidenav-modules-ctrl"><h4>Modules</h4></label><i>Loading</i></div><div id="sidenav-files"><label for="sidenav-files-ctrl"><h4>Files</h4></label><i>Loading</i></div><a href="license.html"><div><h4>License</h4></div></a></nav><div id="push-footer"></div></div><footer><a href="https://github.com/jleyba/js-dossier">Generated by dossier</a></footer><script src="types.js"></script><script src="dossier.js"></script>