Sha256: 0389ff92e73598f08fc464b2cb71eba2bfc17d92bf2e840ffbb2a81f7c5e727b

Contents?: true

Size: 143 Bytes

Versions: 64

Compression:

Stored size: 143 Bytes

Contents

# frozen_string_literal: true

require 'bundler/setup'
require 'polyphony'

i, o = IO.pipe
f = spin { p i.read }

o << 'hello'
o.close
f.await

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
polyphony-1.6 examples/io/pipe.rb
polyphony-1.5 examples/io/pipe.rb
polyphony-1.4 examples/io/pipe.rb
polyphony-1.3 examples/io/pipe.rb
polyphony-1.2.1 examples/io/pipe.rb
polyphony-1.2 examples/io/pipe.rb
polyphony-1.1.1 examples/io/pipe.rb
polyphony-1.1 examples/io/pipe.rb
polyphony-1.0.2 examples/io/pipe.rb
polyphony-1.0.1 examples/io/pipe.rb
polyphony-1.0 examples/io/pipe.rb
polyphony-0.99.6 examples/io/pipe.rb
polyphony-0.99.5 examples/io/pipe.rb
polyphony-0.99.4 examples/io/pipe.rb
polyphony-0.99.3 examples/io/pipe.rb
polyphony-0.99.2 examples/io/pipe.rb
polyphony-0.99.1 examples/io/pipe.rb
polyphony-0.99 examples/io/pipe.rb
polyphony-0.98 examples/io/pipe.rb
polyphony-0.97 examples/io/pipe.rb