MCPcopy Create free account
hub / github.com/WinterTC55/iter-streams / syncToAsync

Function syncToAsync

src/pull.ts:457–461  ·  view source on GitHub ↗

* Convert sync iterable to async iterable.

(source: Iterable<T>)

Source from the content-addressed store, hash-verified

455/**
456 * Convert sync iterable to async iterable.
457 */
458async function* syncToAsync<T>(source: Iterable<T>): AsyncGenerator<T> {
459 for (const item of source) {
460 yield item;
461 }
462}
463
464/**

Callers 1

createAsyncPipelineFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected