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

Function pollAsync

Platforms/emscripten/web_example_pyrepl_jspi/src.mjs:151–156  ·  view source on GitHub ↗
(stream, timeout)

Source from the content-addressed store, hash-verified

149 },
150
151 async pollAsync(stream, timeout) {
152 if (!PTY.readable && timeout) {
153 await waitForReadable(timeout);
154 }
155 return (PTY.readable ? POLLIN : 0) | (PTY.writable ? POLLOUT : 0);
156 },
157 ioctl(stream, request, varargs) {
158 if (request === FIONREAD) {
159 const res = PTY.fromLdiscToUpperBuffer.length;

Callers

nothing calls this directly

Calls 1

waitForReadableFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…