<duplex-stream> ( in out -- duplex-stream )
Factor handbook » Input and output » Duplex streams

Prev:duplex-stream
Next:with-stream ( stream quot -- )


Vocabulary
io.streams.duplex

Inputs
inan input stream
outan output stream


Outputs
duplex-streama duplex-stream


Word description
Creates a duplex stream. Writing to a duplex stream will write to out, and reading from a duplex stream will read from in. Closing a duplex stream closes both the input and output streams.

Definition