@@ -2030,12 +2030,12 @@ class ControlFlow extends events.EventEmitter {
2030
2030
* the task function is a generator, the task will be executed using
2031
2031
* {@link ./promise.consume consume()}.
2032
2032
*
2033
- * @param {function(): (T|ManagedPromise <T>) } fn The function to
2034
- * call to start the task. If the function returns a
2035
- * { @link ManagedPromise}, this instance will wait for it to be
2036
- * resolved before starting the next task.
2033
+ * @param {function(): (T|IThenable <T>) } fn The function to
2034
+ * call to start the task. If the function returns a promise,
2035
+ * this instance will wait for it to be resolved before starting the
2036
+ * next task.
2037
2037
* @param {string= } opt_description A description of the task.
2038
- * @return {!ManagedPromise <T> } A promise that will be resolved
2038
+ * @return {!Thenable <T> } A promise that will be resolved
2039
2039
* with the result of the action.
2040
2040
* @template T
2041
2041
*/
@@ -2066,7 +2066,7 @@ class ControlFlow extends events.EventEmitter {
2066
2066
*
2067
2067
* @param {number } ms The timeout delay, in milliseconds.
2068
2068
* @param {string= } opt_description A description to accompany the timeout.
2069
- * @return {!ManagedPromise } A promise that will be resolved with
2069
+ * @return {!Thenable } A promise that will be resolved with
2070
2070
* the result of the action.
2071
2071
*/
2072
2072
timeout ( ms , opt_description ) {
@@ -2098,14 +2098,14 @@ class ControlFlow extends events.EventEmitter {
2098
2098
* If this function is invoked with `timeout === 0`, or the timeout is
2099
2099
* omitted, the flow will wait indefinitely for the condition to be satisfied.
2100
2100
*
2101
- * @param {(!ManagedPromise <T>|function()) } condition The condition to poll,
2101
+ * @param {(!IThenable <T>|function()) } condition The condition to poll,
2102
2102
* or a promise to wait on.
2103
2103
* @param {number= } opt_timeout How long to wait, in milliseconds, for the
2104
2104
* condition to hold before timing out. If omitted, the flow will wait
2105
2105
* indefinitely.
2106
2106
* @param {string= } opt_message An optional error message to include if the
2107
2107
* wait times out; defaults to the empty string.
2108
- * @return {!ManagedPromise <T> } A promise that will be fulfilled
2108
+ * @return {!Thenable <T> } A promise that will be fulfilled
2109
2109
* when the condition has been satisified. The promise shall be rejected
2110
2110
* if the wait times out waiting for the condition.
2111
2111
* @throws {TypeError } If condition is not a function or promise or if timeout
@@ -2900,8 +2900,7 @@ function controlFlow() {
2900
2900
* a promise that resolves to the callback result.
2901
2901
* @param {function(!ControlFlow) } callback The entry point
2902
2902
* to the newly created flow.
2903
- * @return {!ManagedPromise } A promise that resolves to the callback
2904
- * result.
2903
+ * @return {!Thenable } A promise that resolves to the callback result.
2905
2904
*/
2906
2905
function createFlow ( callback ) {
2907
2906
var flow = new ControlFlow ;
0 commit comments