MCPcopy Create free account
hub / github.com/buke/quickjs-go / js_std_poll_io

Function js_std_poll_io

deps/quickjs/quickjs-libc.c:2823–2830  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2821}
2822
2823int js_std_poll_io(JSContext *ctx, int timeout_ms)
2824{
2825 int ret = js_os_poll_internal(ctx, timeout_ms, 0);
2826 /* map return codes: -1 on error stays -1, negative from handler becomes -2 */
2827 if (ret < -1)
2828 return -2;
2829 return ret;
2830}
2831#else // !defined(_WIN32)
2832static int js_os_poll_internal(JSContext *ctx, int timeout_ms, int flags)
2833{

Callers 1

AwaitValueFunction · 0.85

Calls 1

js_os_poll_internalFunction · 0.85

Tested by

no test coverage detected