Sha256: 38f894849dc91c541b87b9fab045f020dbf17f30ee1d85827697602fd8943fdf

Contents?: true

Size: 130 Bytes

Versions: 9

Compression:

Stored size: 130 Bytes

Contents

require 'go'

EM.synchrony do
  c = Channel.new

  go {
    sleep(1)
    c << 'go go go sleep 1!'
  }

  puts c.pop

  EM.stop
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
em-synchrony-1.0.6 examples/go/channel.rb
em-synchrony-1.0.5 examples/go/channel.rb
em-synchrony-1.0.4 examples/go/channel.rb
em-synchrony-1.0.3 examples/go/channel.rb
em-synchrony-1.0.2 examples/go/channel.rb
em-synchrony-1.0.1 examples/go/channel.rb
em-synchrony-1.0.0 examples/go/channel.rb
em-synchrony-0.3.0.beta.1 examples/go/channel.rb
em-synchrony-0.2.0 examples/go/channel.rb