Re:Node v6.6.0
by danneu on Thursday September 15, 2016 @08:59PM
(#12511189)
Yeah, looks like it just checks on nextTick, so it only warns when you don't attach a handler synchronously. Versus warning only if it's unreachable (like on garbage collection).
Though it does emit another message when rejection is handled asynchronously.
Fortunately, most of the run of the mill promises I can think of off the top of my head get rejection handlers attached synchronously, like in upstream middleware. I might be drawing a blank, though.
Though it does emit another message when rejection is handled asynchronously.
Consolation prize?Fortunately, most of the run of the mill promises I can think of off the top of my head get rejection handlers attached synchronously, like in upstream middleware. I might be drawing a blank, though.