wait-to-read ( port -- eof? )


Vocabulary
io.ports

Inputs
portan input-port


Outputs
eof?a boolean


Word description
If the port's buffer has unread data, returns immediately, otherwise suspends the current thread until some data is available for reading. If the buffer was empty and no more data could be read, outputs t to indicate end-of-file; otherwise outputs f.

Definition