selenium-webdriver
Version:
The official WebDriver JavaScript bindings from the Selenium project
9 lines (8 loc) • 5.73 kB
HTML
<meta charset="UTF-8"><meta http-equiv="Content-Language" content="en" /><title>goog.async.run</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.run.<code class="type"><THIS></code></h1><a class="source" href="source/lib/goog/async/run.js.src.html#l30">code »</a></header><section><p>Fires the provided callback just before the current callstack unwinds, or as
soon as possible after the current JS execution context.<h2>Main</h2><div class="ctor wrap-details public"><div><div class="ctor"><code class="type"><THIS></code> <span class="member">run <span class="args">( callback, opt_context )</span></span></div><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></div></div></section><section><h2>Classes</h2><div class="type-summary"><table><tbody><tr><td><dl><dt><a href="class_goog_async_run_WorkItem_.html">goog.async.run.WorkItem_</a><dd>No Description.</dl></table></div></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/run.js.src.html#l73">code »</a><span class="member"><a name="goog.async.run.forceNextTick">goog.async.run.forceNextTick</a> <span class="args">( )</span></span></div><p>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.</summary></details></div></div><div class="wrap-details private"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/async/run.js.src.html#l49">code »</a><span class="member"><a name="goog.async.run.initializeRunner_">goog.async.run.initializeRunner_</a> <span class="args">( )</span></span></div><p>Initializes the function to use to process the work queue.</summary></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#l116">code »</a><span class="member"><a name="goog.async.run.processWorkQueue">goog.async.run.processWorkQueue</a> <span class="args">( )</span></span></div><p>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.</summary></details></div></div><div class="wrap-details private"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/async/run.js.src.html#l100">code »</a><span class="member"><a name="goog.async.run.resetQueue_">goog.async.run.resetQueue_</a> <span class="args">( )</span></span></div><p>Reset the event queue.</summary></details></div></div><div class="wrap-details private"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/async/run.js.src.html#l84">code »</a><span class="member"><a name="goog.async.run.schedule_">goog.async.run.schedule_</a> <span class="args">( )</span></span></div><p>The function used to schedule work asynchronousely.</summary></details></div></div></section><section id="static-properties"><h2>Global Properties</h2><div class="wrap-details private"><div><details><summary><div><a class="source" href="source/lib/goog/async/run.js.src.html#l88">code »</a><span class="member"><a name="goog.async.run.workQueueScheduled_">goog.async.run.workQueueScheduled_</a> : <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></code></span></div></summary></details></div></div><div class="wrap-details private"><div><details><summary><div><a class="source" href="source/lib/goog/async/run.js.src.html#l92">code »</a><span class="member"><a name="goog.async.run.workQueue_">goog.async.run.workQueue_</a> : <code class="type">!<a href="http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></code></span></div></summary></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>