MCPcopy Create free account
hub / github.com/MemTensor/MemOS / next

Function next

apps/memos-local-plugin/bridge/stdio.ts:380–386  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

378 [Symbol.asyncIterator](): AsyncIterator<{ method: string; params: unknown }> {
379 return {
380 async next() {
381 if (notificationQueue.length > 0) {
382 return { value: notificationQueue.shift()!, done: false };
383 }
384 if (done) return { value: undefined as never, done: true };
385 return new Promise((resolve) => notificationWaiters.push(resolve));
386 },
387 };
388 },
389 },

Calls

no outgoing calls