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 @slightlylate
I see what you are saying but that state machine if not something a human should write.
1 reply 0 retweets 0 likes
Replying to @cramforce
Agree. We take feature requests.
/cc @domenic
2:22 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.