Hot take: Java ListenableFutures are better for SSR than JS promises because one can ask isDone to decide whether to flush before waiting.
-
-
Replying to @cramforce
We take feature requests ;-) That said, Promises only delay until end of current microtask. You can flush before return to the event loop
1 reply 0 retweets 0 likes -
Replying to @slightlylate
You only want to flush if you need to wait longer than current event loop since flushing is expensive.
2 replies 0 retweets 0 likes
Replying to @cramforce
Possible (but not ergonomic) with promises. Suggest a subclass (although I understand issues there).
2:19 PM - 23 Apr 2017
0 replies
0 retweets
0 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.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.