Pipes - Factor Documentation (original) (raw)

Pipes

A pipe is a unidirectional channel for transfer of bytes. Data written to one end of the pipe can be read from the other. Pipes can be used to pass data between processes; they can also be used within a single process to implement communication between coroutines.

Low-level pipes:

pipe

(pipe) ( -- pipe )

High-level pipe streams:

( encoding -- stream )

Pipelines of coroutines and processes:

run-pipeline ( seq -- results )