3 ms·
To an extent... If you're using something that supports promises and not callbacks, which not all of the things you want to use to write an actual script do.
by wilsonrocks 7y ago
To an extent...
If you're using something that supports promises and not callbacks, which not all of the things you want to use to write an actual script do.
- josteink 7y agoYou can easily transform a callback into a promise via simple glue-functions: let result = await CallbackPromise.from(some.callbackConventionFunction, param); Then you get a unified form for the code-base.