4 ms·
This is why I really like the callback pattern that node.js tends to use for all it's IO api calls... the callback always has the option for an error first.. ge
by tracker1 13y ago
This is why I really like the callback pattern that node.js tends to use for all it's IO api calls... the callback always has the option for an error first.. generally if its' a nested callback, bubble up early. Internally, the C code can just check the state and call the callback method early if an error state arises.