Method: Fiber.yield
- Defined in:
- cont.c
.yield(args, ...) ⇒ Object
Yields control back to the context that resumed the fiber, passing along any arguments that were passed to it. The fiber will resume processing at this point when #resume is called next. Any arguments passed to the next #resume will be the value that this Fiber.yield expression evaluates to.
3137 3138 3139 3140 3141 |
# File 'cont.c', line 3137
static VALUE
rb_fiber_s_yield(int argc, VALUE *argv, VALUE klass)
{
return rb_fiber_yield_kw(argc, argv, rb_keyword_given_p());
}
|