Create an async iterator by resolving each of the arguments in order.
import { of } from "yta";const arr = [];const items = of( Promise.resolve("a"), Promise.resolve("b"), Promise.resolve("c"),);for await (item of items) { arr.push(item);}arr;// => ["a", "b", "c"] Copy
import { of } from "yta";const arr = [];const items = of( Promise.resolve("a"), Promise.resolve("b"), Promise.resolve("c"),);for await (item of items) { arr.push(item);}arr;// => ["a", "b", "c"]
Create an async iterator by resolving each of the arguments in order.