This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 135135 *
136136 * **Methods**
137137 *
138- * - `then(successCallback, errorCallback, notifyCallback)` – regardless of when the promise was or
138+ * - `then(successCallback, [ errorCallback], [ notifyCallback] )` – regardless of when the promise was or
139139 * will be resolved or rejected, `then` calls one of the success or error callbacks asynchronously
140140 * as soon as the result is available. The callbacks are called with a single argument: the result
141141 * or rejection reason. Additionally, the notify callback may be called zero or more times to
146146 * with the value which is resolved in that promise using
147147 * [promise chaining](http://www.html5rocks.com/en/tutorials/es6/promises/#toc-promises-queues)).
148148 * It also notifies via the return value of the `notifyCallback` method. The promise cannot be
149- * resolved or rejected from the notifyCallback method.
149+ * resolved or rejected from the notifyCallback method. The errorCallback and notifyCallback
150+ * arguments are optional.
150151 *
151152 * - `catch(errorCallback)` – shorthand for `promise.then(null, errorCallback)`
152153 *
You can’t perform that action at this time.
0 commit comments