Method: Fiber.yield
- Defined in:
- lib/cfiber.rb
.yield(*args) ⇒ Object
Fiber.yield delegates to the current fiber instance #yield method.
In order to retrieve the current fiber, a reference should have been stored. It’s thread-safe for it uses a Thread.current-local variable to store the ref.
33 34 35 |
# File 'lib/cfiber.rb', line 33 def self.yield(*args) Fiber.current.yield(*args) end |