MCPcopy Create free account
hub / github.com/tensorflow/tfjs / forEachAsync

Function forEachAsync

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

* Apply a function to every element of the stream. * * @param f A function to apply to each stream element.

(f: (value: T) => void)

Source from the content-addressed store, hash-verified

316 * @param f A function to apply to each stream element.
317 */
318 async forEachAsync(f: (value: T) => void): Promise<void> {
319 return this.map(f).resolveFully();
320 }
321
322 /**
323 * Apply a function to every element of the stream, forcing serial execution.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…