Sha256: 17875aac432a040f396f61fa780c81ec8e13a23539e5698c00d1a8ba7fa1419e
Contents?: true
Size: 329 Bytes
Versions: 1
Compression:
Stored size: 329 Bytes
Contents
module Elevate # A simple unidirectional stream of data with a single consumer. # # @api private class Channel def initialize(block) @target = block end # Pushes data to consumers immediately # # @return [void] # # @api private def <<(obj) @target.call(obj) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
elevate-0.7.0 | lib/elevate/channel.rb |