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

Function waitAndCreateCount

tfjs-data/src/readers_test.ts:126–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124
125 it('generate dataset from async iterator factory', async () => {
126 async function waitAndCreateCount() {
127 return new Promise(resolve => {
128 setTimeout(() => {
129 resolve(3);
130 }, 1000);
131 });
132 }
133 async function makeIterator() {
134 let iterationCount = (await waitAndCreateCount()) as number;
135 const iterator = {

Callers 1

makeIteratorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…