2 ms·
I hate promises. Writing: let result; let error; await blah .then(r=>result=r) .catch(e=>error=3) .final(callback(err, result)); Is disgusting.
by tqwhite 3y ago
I hate promises. Writing:
let result; let error;
await blah
.then(r=>result=r)
.catch(e=>error=3)
.final(callback(err, result));
Is disgusting.