async function asyncLog(items) {
console.log(items);
}
async function f1() {
setTimeout(() => {
throw Error("timeout");
}, 100);
while (true) {
await asyncLog(1);
}
}
async function f2() {
while (true) {
await asyncLog(2);
}
}
f1();
f2();