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.



36
37
38
# File 'lib/rbgo/corun.rb', line 36

def error
  @error
end

Instance Method Details

#alive?Boolean

Returns:

  • (Boolean)


38
39
40
41
# File 'lib/rbgo/corun.rb', line 38

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