Replies: 1 comment
-
You can just call |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using async/scheduler as a fiber scheduler. I've got a somewhat long-running fiber that is blocking other fibers from reading from IO's. I'd like the long-running fiber to periodically "surrender" control to the event loop, allow other fibers a chance to run, and then resume where it left off.
I could
Fiber.yield
, but there's no good mechanism to later resume the fiber.I stumbled on this solution:
Is this safe? Is there a better way?
Beta Was this translation helpful? Give feedback.
All reactions