MCPcopy Index your code
hub / github.com/tiann/hapi /

Class

cli/src/utils/PushableAsyncIterable.ts:10–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8 * Allows asynchronous pushing of values that can be consumed via for-await-of
9 */
10export class PushableAsyncIterable<T> implements AsyncIterableIterator<T> {
11 private queue: T[] = []
12 private waiters: Array<{
13 resolve: (value: IteratorResult<T>) => void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected