Skip to content

Comment on Designing APIs for Asynchronyparent

Comments

I think it's mostly about the failure case. Calling the callback immediately can mean that certain algorithms will walk down the stack, invoking synchronous callbacks until they run out of stack space. Not great.

In your use case it's possible you'll never hit that failure scenario.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.