I have this code:
for await (const thing of signal()) {
// logic
}
for await (const thing of anotherSignal()) {
// logic
}
The problem is that these for awaits run forever. So the second one never executes. Is there a way to make these 2 loops run in parallel?
Promise.allstackoverflow.com/a/35612484/4781975