MCPcopy
hub / github.com/tensorflow/tfjs / next

Method next

tfjs-data/src/iterators/lazy_iterator.ts:1123–1129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1121 }
1122
1123 next(): Promise<IteratorResult<T>> {
1124 this.refill();
1125 // This shift will never throw an error because the buffer is always
1126 // full after a refill. If the stream is exhausted, the buffer will be
1127 // full of Promises that will resolve to the end-of-stream signal.
1128 return this.buffer.shift();
1129 }
1130}
1131
1132/**

Callers

nothing calls this directly

Calls 2

refillMethod · 0.95
shiftMethod · 0.80

Tested by

no test coverage detected