chickadee » scheme » base » u8-ready?

u8-ready? #!optional portprocedure

Returns #t if a byte is ready on the binary input port and returns #f otherwise. If u8-ready? returns #t then the next read-u8 operation on the given port is guaranteed not to hang. If the port is at end of file then u8-ready?​ ​returns #t.