Sha256: 893a75af59bf24bfd3dc35088febb80d53fe61d34207c67ce664f67ccf9ca21a
Contents?: true
Size: 407 Bytes
Versions: 2
Compression:
Stored size: 407 Bytes
Contents
class Fiber { """ Fiber class. Fibers are cooperatively scheduled coroutines supported by the Rubinius VM. Control flow between multiple Fibers is always explicitly handled. There is no preemptive scheduler. """ def sleep: seconds { @sleep_end = Time now + seconds } def asleep? { if: @sleep_end then: { Time now < @sleep_end } } def Fiber name { "Fiber" } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fancy-0.5.0 | lib/fiber.fy |
fancy-0.4.0 | lib/fiber.fy |