async function* fn() {
yield* [1,2]
}
Flow reports that [1, 2] is not an AsyncIterable
https://flow.org/try/#0IYZwngdgxgBAZgV2gFwJYHsICp4QBQCUMA3gFAwxioCmANgCY4DaAjADQBMAuqQL6lA
use
async function* fn() {
yield [1,2]
}
That's different. My code is the equivalent of
async function* fn() {
yield 1;
yield 2;
}
Most helpful comment
That's different. My code is the equivalent of