MCPcopy
hub / github.com/ardatan/graphql-tools / isAsyncIterable

Function isAsyncIterable

packages/utils/src/isAsyncIterable.ts:1–3  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

1export function isAsyncIterable<T>(value: any): value is AsyncIterable<T> {
2 return value?.[Symbol.asyncIterator] != null;
3}

Callers 11

makeYogaSourceFunction · 0.90
completeListValueFunction · 0.90
mapSourceToResponseFunction · 0.90
assertEventStreamFunction · 0.90
subscribe.test.tsFile · 0.90
assertAsyncIterableFunction · 0.90
assertAsyncIterableFunction · 0.90

Calls

no outgoing calls

Tested by 1

assertAsyncIterableFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…