You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But uv.run(uv.RUN_ONCE) never calls my callbacks. If I change to uv.run() the callbacks are called correctly, but then I cannot call step() every loop. Any idea why uv.RUN_ONCE doesn't work?
I could set an idle callback, but then uv.run() would never block to wait for IO, which is something I want. All I want is for step() to be called after every uv loop, and uv should block. Any idea? Neither uv.check() nor uv.prepare() worked as I expected.
Thanks for the help!
The text was updated successfully, but these errors were encountered:
Hey, I'm trying to run my event loop interleaved with
uv.run()
like this:But
uv.run(uv.RUN_ONCE)
never calls my callbacks. If I change touv.run()
the callbacks are called correctly, but then I cannot callstep()
every loop. Any idea why uv.RUN_ONCE doesn't work?I could set an idle callback, but then
uv.run()
would never block to wait for IO, which is something I want. All I want is forstep()
to be called after every uv loop, and uv should block. Any idea? Neitheruv.check()
noruv.prepare()
worked as I expected.Thanks for the help!
The text was updated successfully, but these errors were encountered: