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.



10
11
12
# File 'lib/rbgo/corun.rb', line 10

def error
  @error
end

Instance Method Details

#alive?Boolean

Returns:

  • (Boolean)


12
13
14
15
# File 'lib/rbgo/corun.rb', line 12

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