3 ms·
I assumed dada is using promises under the hood, just as JS is. If this is the case it could provide a static method for waiting on multiple promises, just as J
by janderland 3y ago
I assumed dada is using promises under the hood, just as JS is. If this is the case it could provide a static method for waiting on multiple promises, just as JS does.
- spankalee 3y agoThis seems to say otherwise (specifically the "but not running" part): Dada, like JavaScript, is based exclusively on async-await. This means that operations that perform I/O, like print, don't execute immediately. Instead, they return a thunk, which is basically "code waiting to run" (but not running yet). The thunk doesn't execute until you await it by using the .await operation. From https://dada-lang.org/docs/dyn_tutorial https://dada-lang.org/docs/dyn_tutorial