-
`AsyncIterator.zip([asyncIterator, syncIterable])` should presumably work (once we get [`Iterator.zip`](https://github.com/tc39/proposal-joint-iteration)).
`for await (let val of [Promise.resolve(0…
-
## Terminology
Some additional terms are introduced for talking about promises:
1. "Settled" means the promise's state is either fulfilled or rejected.
## Promise Fates
A promise's _fate_ describes …
-
A lot of the tests, especially for 2.3, are created programmatically via various permutations of the objects and possibilities involved. This has always been problematic, and recently @jcoglan has run…
-
Here is our terminology problem with current libraries:
1. We have fulfilled, rejected, and pending as three mutually-exclusive states. Everyone is reasonably happy with those names.
2. We want a name…
-
# Promises/A+ Extension: Synchronous Inspection
This proposal extends the [Promises/A+ specification](http://promises-aplus.github.com/promises-spec/) to cover synchronous inspection of a promise's f…
-
I think we discussed similar topic in the context of reviewing some example written by you for the Streams spec.
We got this report about fetch()'s memory usage. http://crbug.com/473062
We see ~100M…
-
In #18, I propose letting the factory run in a new turn per #20, and not catching any thrown errors (i.e. they should just crash the program).
The alternative is to catch any errors and transform the…
-
This idea involves establishing a set of standard "environment hooks" which, if present, are called upon an unhandled rejection and upon it being handled later.
The essential idea would be something …
-
-
Pomise在涉及模式中称之为**揭示构造函数**,因为生成的一个Promise的状态只会由内部函数决定,这里我们就不详细说[规范](https://segmentfault.com/a/1190000002452115)了,这次就实现一个Promise类来学习:
```javascript
function isFunction(fun) {
return Object.p…