Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Unified Diff: mojo/public/js/core.js

Issue 2744943002: Mojo: Move waiting APIs to public library (Closed)
Patch Set: . Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/js/connector.js ('k') | mojo/public/js/new_bindings/connector.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/js/core.js
diff --git a/mojo/public/js/core.js b/mojo/public/js/core.js
index 28fdcb77a9ecf7f594517246b1363ac71d9d8457..b2c4ee273376441e06be246ced288e99fd60b4db 100644
--- a/mojo/public/js/core.js
+++ b/mojo/public/js/core.js
@@ -41,12 +41,6 @@ var RESULT_BUSY;
var RESULT_SHOULD_WAIT;
/**
- * MojoDeadline {number}: Used to specify deadlines (timeouts), in microseconds.
- * See core.h for more information.
- */
-var DEADLINE_INDEFINITE;
-
-/**
* MojoHandleSignals: Used to specify signals that can be waited on for a handle
*(and which can be triggered), e.g., the ability to read or write to
* the handle.
@@ -155,28 +149,13 @@ function queryHandleSignalsState(handle) { [native code] }
/**
* Waits on the given handle until a signal indicated by |signals| is
- * satisfied or until |deadline| is passed. See MojoWait for more information.
+ * satisfied or an error occurs.
*
* @param {MojoHandle} handle Handle to wait on.
* @param {MojoHandleSignals} signals Specifies the condition to wait for.
- * @param {MojoDeadline} deadline Stops waiting if this is reached.
- * @return {MojoResult} Result code.
- */
-function wait(handle, signals, deadline) { [native code] }
-
-/**
- * Waits on |handles[0]|, ..., |handles[handles.length-1]| for at least one of
- * them to satisfy the state indicated by |flags[0]|, ...,
- * |flags[handles.length-1]|, respectively, or until |deadline| has passed.
- * See MojoWaitMany for more information.
- *
- * @param {Array.MojoHandle} handles Handles to wait on.
- * @param {Array.MojoHandleSignals} signals Specifies the condition to wait for,
- * for each corresponding handle. Must be the same length as |handles|.
- * @param {MojoDeadline} deadline Stops waiting if this is reached.
* @return {MojoResult} Result code.
*/
-function waitMany(handles, signals, deadline) { [native code] }
+function wait(handle, signals) { [native code] }
/**
* Creates a message pipe. This function always succeeds.
« no previous file with comments | « mojo/public/js/connector.js ('k') | mojo/public/js/new_bindings/connector.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698