mirror of
https://github.com/lloeki/normandy.git
synced 2025-12-06 01:54:40 +01:00
11 lines
175 B
Ruby
11 lines
175 B
Ruby
# https://gobyexample.com/channel_buffering
|
|
|
|
require 'channel'
|
|
|
|
messages = Channel.new(2)
|
|
|
|
messages << 'buffered'
|
|
messages << 'channel'
|
|
|
|
puts messages.recv
|
|
puts messages.recv
|