MCPcopy
hub / github.com/coder/mux / push

Function push

src/browser/testUtils.ts:90–102  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

88 return {
89 iterable,
90 push(value: T) {
91 if (closed) {
92 return;
93 }
94
95 const resolve = pending.shift();
96 if (resolve) {
97 resolve({ value, done: false });
98 return;
99 }
100
101 buffered.push(value);
102 },
103 close,
104 };
105}

Callers 2

notifyConfigChangedFunction · 0.50

Calls 2

pushMethod · 0.65
resolveFunction · 0.50

Tested by 1