Message from JavaScript discussions

April 2017

— Yeah

— 

I mean I've used pomises in non-async situations because they are a great way out of callback hell, so theres probably very good use examples for it

— Ahhh

— Why would there be callbacks in non-async situations though...

— In systems design you may have an event bus

— Like a dispatcher or other event management system

— A synchronous event bus?!

— Or, in the case of DOM nodes, state propagation

— Yes

— Mostly in systems handling state

— Ie a game loop, facebook, and other non-concurrent systems where state is handled in bursts of mutation/batched operations

Message permanent page

— Promises can be used there quite a bit and are a cornerstone of all that is good about functional programming

Message permanent page