Sha256: 5f59c3ab8f5abd985fae6f90073fa49405a3f6e5e6f59e8c0224e15ab37a9d63

Contents?: true

Size: 226 Bytes

Versions: 1

Compression:

Stored size: 226 Bytes

Contents

require 'fiber'

# Beam, a minimal executor unit, like thread but lightweight
# must have a ioloop
module LightIO
  class Beam < Fiber
    def initialize ioloop:, &blk
      @ioloop = ioloop
      super(&blk)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lightio-0.1.0.pre lib/lightio/beam.rb