stream-flush ( stream -- )
Factor handbook » Input and output » Streams » Stream protocol

Prev:stream-readln ( stream -- str/f )
Next:stream-write1 ( elt stream -- )


Vocabulary
io

Inputs
streaman output stream


Outputs
None

Generic word contract
Waits for any pending output to complete.

Notes
With many output streams, written output is buffered and not sent to the underlying resource until either the buffer is full, or this word is called.

Notes
Most code only works on one stream at a time and should instead use flush; see Default input and output streams.

Errors
Throws an error if the I/O operation fails.

Definition


Methods