MCPcopy Index your code
hub / github.com/tensorflow/tfjs / refill

Method refill

tfjs-data/src/iterators/lazy_iterator.ts:1116–1121  ·  view source on GitHub ↗

* Refill the prefetch buffer. Returns only after the buffer is full, or * the upstream source is exhausted.

()

Source from the content-addressed store, hash-verified

1114 * the upstream source is exhausted.
1115 */
1116 protected refill() {
1117 while (!this.buffer.isFull()) {
1118 const v = this.upstream.next();
1119 this.buffer.push(v);
1120 }
1121 }
1122
1123 next(): Promise<IteratorResult<T>> {
1124 this.refill();

Callers 2

nextMethod · 0.95
serialNextMethod · 0.80

Calls 3

isFullMethod · 0.45
nextMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected