Method: Fiber#blocking?
- Defined in:
- cont.c
#blocking? ⇒ Boolean
Returns true
if fiber
is blocking and false
otherwise. Fiber is non-blocking if it was created via passing blocking: false
to Fiber.new, or via Fiber.schedule.
Note that, even if the method returns false
, the fiber behaves differently only if Fiber.scheduler is set in the current thread.
See the “Non-blocking fibers” section in class docs for details.
2728 2729 2730 2731 2732 |
# File 'cont.c', line 2728
VALUE
rb_fiber_blocking_p(VALUE fiber)
{
return RBOOL(fiber_ptr(fiber)->blocking);
}
|