3 ms·
Promises and callbacks are equivalent, it should be pretty trivial to convert all libraries of one style to the other just by wrapping calls to it in a utility
by masklinn 11y ago
Promises and callbacks are equivalent, it should be pretty trivial to convert all libraries of one style to the other just by wrapping calls to it in a utility function of some sort (and there are probably existing libraries to do exactly that).
The only excuse for mixed-style codebases is a codebase in the process of being converted from one style to the other.