-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check both completion conditions when adding ready/failed/do/doError.
Adding a ready after there had been an error would try to push it to the ready slots, which was null because all these arrays are removed when an error has occurred. The same was true for do, and the inverse for doErr and failed after error-free completion. All these places needed to check both this.completed and this.hasFailed. Better might be to add Future.prototype.settled() to avoid the need to repeat the checks.
- Loading branch information
1 parent
c86e44c
commit 8f3b8e4
Showing
1 changed file
with
10 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters