2 ms·
You could imagine an hypothetical language with implicit awaits but explicit forks: const promise1 = async job1(); const promise2 = async job2(); c
by gpderetta 2y ago
You could imagine an hypothetical language with implicit awaits but explicit forks:
const promise1 = async job1();
const promise2 = async job2();
const [result1, result2] = Promise.all(promise1, promise2);