— 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
— 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