I'm guessing you missed the second sentence in my reply about the fact I'm
strongly against the original proposal...
On Mon, Feb 27, 2017, 17:24 Michał Wadas wrote:
> Actually, this proposal would be a revolution and I can think of too many
> edge cases to make it viable.
>
> Consider:
>
> async
Actually, this proposal would be a revolution and I can think of too
many edge cases to make it viable.
Consider:
async function foo() {
async function bar() {
[1,2,3].forEach(async function() { async return
3; });
} return (await bar()) + 39;
}
What does
I was speaking objectively about the proposal itself, and the scope of it.
I'm personally strongly against it for reasons I stated earlier in the
thread (the status quo is better IMHO). I was just trying to direct people
back to the actual scope of the proposal instead of basically reinventing
asyn
On Mon, Feb 27, 2017 at 12:41 AM, Isiah Meadows wrote:
> May I add one more thing: the main topic this was about is adapting
> non-standard async APIs (like Node's error-first callback idiom) to the land
> of promises. Async functions and iterators are incredibly useful when you're
> dealing with
I had a similar thought a while ago for adapting non-promise functions, by
way of `async.resolve()` and `async.reject()`:
```javascript
async function asyncFunction() {
someAsync('data', (err, data) => {
if (err) async.reject(err);
async.resolve(data);
})
}
```
This differ
May I add one more thing: the main topic this was about is adapting
non-standard async APIs (like Node's error-first callback idiom) to the
land of promises. Async functions and iterators are incredibly useful when
you're dealing with just promises, especially consuming them, but this is
about crea
Okay. Never mind, then.
On Sun, Feb 26, 2017, 08:42 Andrea Giammarchi
wrote:
> What I meant, is that I don't think it'd be wise to duplicate DOM
> standards on the ES side or, even worse, create specification
> incompatibilities.
>
> Timers are just the top of the iceberg, IMO
>
> On Sun, Feb 26
7 matches
Mail list logo