MCPcopy Index your code
hub / github.com/python/cpython / syncSleep

Function syncSleep

Platforms/emscripten/streams.mjs:40–47  ·  view source on GitHub ↗
(timeout)

Source from the content-addressed store, hash-verified

38 new WebAssembly.Memory({ shared: true, initial: 1, maximum: 1 }).buffer,
39);
40function syncSleep(timeout) {
41 try {
42 Atomics.wait(waitBuffer, 0, 0, timeout);
43 return true;
44 } catch (_) {
45 return false;
46 }
47}
48
49/**
50 * Calls the callback and handle node EAGAIN errors.

Callers 1

handleEAGAINFunction · 0.85

Calls 1

waitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…