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:
- The
timeout_after method stores the information about the timeout in a hash, calls the block and removes the info from the hash.
- A separate worker monitors the hash at specific intervals and raises exceptions in timed out fibers.
Tips
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:
timeout_aftermethod stores the information about the timeout in a hash, calls the block and removes the info from the hash.Tips