Sha256: 9513436e4a36b08f38a442bcfd536c3a83a76a4916bbba2d0ee04adc3f02ab17
Contents?: true
Size: 289 Bytes
Versions: 3
Compression:
Stored size: 289 Bytes
Contents
# A sink is never called concurrently. # On the other side, each sink can be called concurrently. # So be careful to occur race condition in multi sinks. class Acc < Datapipes::Sink attr_reader :stock def initialize @stock = [] end def run(data) @stock << data end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
datapipes-0.1.5 | examples/lib/acc.rb |
datapipes-0.1.4 | examples/lib/acc.rb |
datapipes-0.1.3 | examples/lib/acc.rb |