mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
18 lines
298 B
JavaScript
18 lines
298 B
JavaScript
async function foo() {
|
|
for await (num of asyncIterable) {
|
|
console.log(num);
|
|
}
|
|
for await (num of asyncGeneratorFunc()) {
|
|
console.log(num);
|
|
}
|
|
}
|
|
|
|
(async () => {
|
|
for await (num of asyncIterable) {
|
|
console.log(num);
|
|
}
|
|
for await (const x of delegate_yield()) {
|
|
x;
|
|
}
|
|
})();
|