Fiber.cancel polling vs select timeout for bounded cooperative cancellation
Goal is to bound the execution of a fiber that may perform work with blocking waits and allow an external request to cancel it gracefully without forced termination. Two documented approaches can be used for this constraint. One is to call Fiber#cancel and have the fiber periodically check Fiber.current.canceled? and exit cooperatively at safe points. The ot