4 ms·
You'd be doing something similar with the task library in C# or Promises in Javascript (or in ES5-land, callback hell). I'd recommend just opening up an IDE in
by Scuds 7y ago
You'd be doing something similar with the task library in C# or Promises in Javascript (or in ES5-land, callback hell).
I'd recommend just opening up an IDE in any of these and seeing the types and parameters that come in and out of these calls.
The sync vs async worlds really to clash with each other but at least we have strongly typed languages to help with writing the code. In javascript you could be mixing callbacks and promises and encounter bits where you'd never know that the next line would never be executed because of some nonexistent callback, etc etc.