MCPcopy Create free account
hub / github.com/ardatan/graphql-tools / emptyQueue

Function emptyQueue

packages/utils/src/observableToAsyncIterable.ts:73–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71 });
72
73 const emptyQueue = () => {
74 if (listening) {
75 listening = false;
76 subscription.unsubscribe();
77 for (const resolve of pullQueue) {
78 resolve({ value: undefined, done: true });
79 }
80 pullQueue.length = 0;
81 pushQueue.length = 0;
82 }
83 };
84
85 return {
86 next() {

Callers 5

returnFunction · 0.85
throwFunction · 0.85
returnMethod · 0.85
throwMethod · 0.85

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected