Class: LightIO::Core::LightFiber
- Inherits:
-
Fiber
- Object
- Fiber
- LightIO::Core::LightFiber
- Defined in:
- lib/lightio/core/light_fiber.rb
Overview
LightFiber is internal represent, we make slight extend on ruby Fiber to bind fibers to IOLoop
SHOULD NOT BE USED DIRECTLY
Direct Known Subclasses
Instance Attribute Summary collapse
-
#ioloop ⇒ Object
readonly
Returns the value of attribute ioloop.
Instance Method Summary collapse
-
#initialize(ioloop: IOloop.current, &blk) ⇒ LightFiber
constructor
A new instance of LightFiber.
Constructor Details
#initialize(ioloop: IOloop.current, &blk) ⇒ LightFiber
Returns a new instance of LightFiber.
10 11 12 13 |
# File 'lib/lightio/core/light_fiber.rb', line 10 def initialize(ioloop: IOloop.current, &blk) @ioloop = ioloop super(&blk) end |
Instance Attribute Details
#ioloop ⇒ Object (readonly)
Returns the value of attribute ioloop.
8 9 10 |
# File 'lib/lightio/core/light_fiber.rb', line 8 def ioloop @ioloop end |