@wycats https://thefeedbackloop.xyz/tc39-promises-promises/ …
Another alternative:
return Promise.resolve().then(() => {
let url = new URL(…);
return fetch(url);
})
Replying to @rauschma
works differently -- the callback runs after the tick, while async function's top part runs right away.
8:36 AM - 16 Dec 2016
0 replies
0 retweets
3 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.