|
|
|
|
|
by kasbah
2871 days ago
|
|
`await` is useful since with the absence of it you can schedule multiple tasks concurrently. In JS: var task1 = someAsyncTask1()
var task2 = someAsyncTask2()
await Promise.all([task1, task2])
If `await` was implicit then task2 would wait for task1 to finish. |
|