class Fiber

Fiber extensions

Attributes

parent[RW]
result[R]
tag[RW]
thread[RW]

Public Instance Methods

caller() click to toggle source
# File lib/polyphony/extensions/fiber.rb, line 396
def caller
  spin_caller = @caller || []
  if @parent
    spin_caller + @parent.caller
  else
    spin_caller
  end
end
inspect() click to toggle source
# File lib/polyphony/extensions/fiber.rb, line 383
def inspect
  if @tag
    "#<Fiber #{tag}:#{object_id} #{location} (#{state})>"
  else
    "#<Fiber:#{object_id} #{location} (#{state})>"
  end
end
Also aliased as: to_s
location() click to toggle source
# File lib/polyphony/extensions/fiber.rb, line 392
def location
  @caller ? @caller[0] : '(root)'
end
main?() click to toggle source
# File lib/polyphony/extensions/fiber.rb, line 405
def main?
  @main
end
running?() click to toggle source
# File lib/polyphony/extensions/fiber.rb, line 379
def running?
  @running
end
to_s()
Alias for: inspect