Yessssss! The Waker simplification for Futures has been merged into the main RFC! -- https://github.com/aturon/rfcs/pull/16 … So no more LocalWaker / Waker distinction. Only 1 Waker type is needed to signal a Future is ready. This means we're *so close* to having Futures land on stable!
-
-
Maybe I'm misunderstanding, but JS promises start work right away. console.log('before'); new Promise(resolve => { console.log('working'); resolve(); }); console.log('after')
-
Ah yes, you're entirely right! I got confused with the difference between new Promise(), and Promise.resolve().then(). One is scheduled immediately, other is put in microtask queue — overlap in use, but def different. Thanks for the correction! https://jakearchibald.com/2015/tasks-microtasks-queues-and-schedules/ …
- 1 more reply
New conversation -
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.