class FiberRecycling::RootFiberBackend
Attributes
variables[R]
Public Class Methods
new()
click to toggle source
# File lib/fiber_recycling/root_fiber_backend.rb, line 10 def initialize @variables = {} end
yield(*args)
click to toggle source
# File lib/fiber_recycling/root_fiber_backend.rb, line 4 def self.yield(*args) raise FiberError, "can't yield from root fiber" end
Public Instance Methods
alive?()
click to toggle source
# File lib/fiber_recycling/root_fiber_backend.rb, line 14 def alive? ::Fiber.root.alive? end
inspect()
click to toggle source
# File lib/fiber_recycling/root_fiber_backend.rb, line 18 def inspect ::Fiber.root.inspect end
resume(*args)
click to toggle source
# File lib/fiber_recycling/root_fiber_backend.rb, line 22 def resume(*args) ::Fiber.root.resume(*args) end
to_s()
click to toggle source
# File lib/fiber_recycling/root_fiber_backend.rb, line 26 def to_s "#<RecycledFiber::Fiber:#{object_hexid}>" end
transfer(*args)
click to toggle source
# File lib/fiber_recycling/root_fiber_backend.rb, line 30 def transfer(*args) ::Fiber.root.transfer(*args) end