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

Function sleep

e2e/benchmarks/browserstack-benchmark/app_node_test.js:276–280  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

274});
275
276function sleep(n) {
277 return new Promise((resolve) => {
278 setTimeout(() => { resolve(); }, n);
279 });
280}
281
282describe('promise queue', () => {
283 let queue;

Callers 1

app_node_test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…