Closed nicolo-ribaudo closed 3 weeks ago
async function* fn() { yield* [1,2] }
Flow reports that [1, 2] is not an AsyncIterable https://flow.org/try/#0IYZwngdgxgBAZgV2gFwJYHsICp4QBQCUMA3gFAwxioCmANgCY4DaAjADQBMAuqQL6lA
[1, 2]
AsyncIterable
use
async function* fn() { yield [1,2] }
That's different. My code is the equivalent of
async function* fn() { yield 1; yield 2; }
this now works
Flow reports that
[1, 2]
is not anAsyncIterable
https://flow.org/try/#0IYZwngdgxgBAZgV2gFwJYHsICp4QBQCUMA3gFAwxioCmANgCY4DaAjADQBMAuqQL6lA