3 ms·
Promises did solve the problem; async/await is just syntactic sugar for them. The important thing is being able to start a task and pass around its value on com
by minitech 10y ago
Promises did solve the problem; async/await is just syntactic sugar for them. The important thing is being able to start a task and pass around its value on completion without worrying whether that completion has happened yet. If you didn’t see an advantage to promises, you might have just been using them like callbacks.