MCPcopy Create free account
hub / github.com/denoland/std / next

Method next

async/tee.ts:44–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 }
43
44 async next() {
45 const result = await this.#source.next();
46 if (!result.done) {
47 const nextNode: QueueNode<T> = {
48 value: result.value,
49 next: undefined,
50 };
51 this.#queue.next = nextNode;
52 this.#queue = nextNode;
53 } else {
54 this.done = true;
55 }
56 }
57}
58
59/**

Callers 15

#pruneToMaxSizeMethod · 0.45
parseMethod · 0.45
#getNextMethod · 0.45
pullMethod · 0.45
pullMethod · 0.45
pullMethod · 0.45
pullMethod · 0.45
convertMethod · 0.45
startMethod · 0.45
pullMethod · 0.45
replaceAllAsyncFunction · 0.45
maxByFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected