Method: Concurrent::Selectable::Channel#put
- Defined in:
- lib/concurrent/selectable/channel.rb
#put(value) ⇒ Object Also known as: <<
Places value on the channel.
70 71 72 73 74 75 |
# File 'lib/concurrent/selectable/channel.rb', line 70 def put(value) @lock.synchronize do internal_set if @channel.empty? @channel.enq value end end |