4 ms·
You could also have an object with on_success, on_failure attributes so Futures are the same syntax sugar
by heavenlyblue 3y ago
You could also have an object with on_success, on_failure attributes so Futures are the same syntax sugar
- littlestymaar 3y agoIn JavaScript, where you have first class functions and an event loop built-in, yes. But for languages that lack one of those, then no.