8000 [Fiber Scheduler] Support timeouts · Issue #155 · rage-rb/rage · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Fiber Scheduler] Support timeouts #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rsamoilov opened this issue May 5, 2025 · 0 comments
Open

[Fiber Scheduler] Support timeouts #155

rsamoilov opened this issue May 5, 2025 · 0 comments
Labels
good first issue Good for newcomers

Comments

@rsamoilov
Copy link
Member

Description

Currently, Rage's fiber scheduler doesn't support manual timeouts. The reference implementation is both slow and consumes too much memory, and thus, it has been commented out.

Instead, the new implementation should work in two steps:

  1. The timeout_after method stores the information about the timeout in a hash, calls the block and removes the info from the hash.
  2. A separate worker monitors the hash at specific intervals and raises exceptions in timed out fibers.

Tips

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant
0