Class: Rbgo::CoRun::Routine

Inherits:
Object
  • Object
show all
Defined in:
lib/rbgo/corun.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorObject

Returns the value of attribute error.



108
109
110
# File 'lib/rbgo/corun.rb', line 108

def error
  @error
end

Instance Method Details

#alive?Boolean

Returns:

  • (Boolean)


110
111
112
113
# File 'lib/rbgo/corun.rb', line 110

def alive?
  return fiber.alive? unless fiber.nil?
  true
end