lib/polyphony/extensions/fiber.rb
# Prepares a fiber for running.
#
# @param tag [any] fiber's tag
# @param block [Proc] fiber's block
# @param caller [Array<String>] fiber's caller
# @param parent [Fiber] fiber's parent
# @return [void]
Prepares a fiber for running.
Prepares a fiber for running .
def prepare(tag, block, caller, parent)
      @thread = Thread.current
      @tag = tag
      @parent = parent
      @caller = caller
      @block = block
      Thread.backend.trace(:spin, self, Kernel.caller[1..-1])
      schedule
    end
def prepare ( tag , block , caller , parent ) @thread = Thread . current @tag = tag @parent = parent @caller = caller @block = block Thread . backend . trace ( :spin , self , Kernel . caller [ 1 .. - 1 ] ) schedule end
Prepares a fiber for running.
Prepares a fiber for running .
None
void
tag
None
block
None
caller
None
parent
None