Skip to content

[Fiber Scheduler] Support timeouts #155

@rsamoilov

Description

@rsamoilov

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions