Last updated 5 months ago
• Docs
/ / collect
collect<T>(iterable): Promise<T[]>
T
iterable
Promise
Collect an async iterable into an array
AsyncIterable<T, any, any>
AsyncIterable
any
The async iterable to collect
Promise<T[]>
import { collect } from '@twine-protocol/twine-core' const chains = await collect(resolver.chains())