|
|
|
|
|
by fregante
1734 days ago
|
|
This reminds me of something I’d like to see in JavaScript: Loops that accept `await` in their body without pausing the whole loop. This is already possible with: await Promise.all(arr.map(async item => {
await item()
})
… but it requires turning the iterable into an array first and it requires calling a function.Is anyone working on a proposal for this? async for (const item of iterable)
await item()
|
|