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

Method pull

cbor/_map_decoded_stream.ts:54–60  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

52 ) {
53 super({
54 async pull(controller) {
55 const { done, value } = await gen.next();
56 if (done) {
57 releaseLock();
58 controller.close();
59 } else controller.enqueue(value);
60 },
61 async cancel() {
62 // deno-lint-ignore no-empty
63 for await (const _ of gen) {}

Callers

nothing calls this directly

Calls 2

closeMethod · 0.65
nextMethod · 0.45

Tested by

no test coverage detected