This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 135
135
*
136
136
* **Methods**
137
137
*
138
- * - `then(successCallback, errorCallback, notifyCallback)` – regardless of when the promise was or
138
+ * - `then(successCallback, [ errorCallback], [ notifyCallback] )` – regardless of when the promise was or
139
139
* will be resolved or rejected, `then` calls one of the success or error callbacks asynchronously
140
140
* as soon as the result is available. The callbacks are called with a single argument: the result
141
141
* or rejection reason. Additionally, the notify callback may be called zero or more times to
146
146
* with the value which is resolved in that promise using
147
147
* [promise chaining](http://www.html5rocks.com/en/tutorials/es6/promises/#toc-promises-queues)).
148
148
* 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.
150
151
*
151
152
* - `catch(errorCallback)` – shorthand for `promise.then(null, errorCallback)`
152
153
*
You can’t perform that action at this time.
0 commit comments