Add Stdin.readByte().

This commit is contained in:
Bob Nystrom
2016-05-20 11:50:14 -07:00
parent 872cfdcd42
commit 500dd41ccd
7 changed files with 140 additions and 55 deletions
+7
View File
@@ -4,6 +4,13 @@ The standard input stream.
## Static Methods
### **readByte**()
Reads one byte of input from stdin. Blocks the current fiber until a byte has
been received.
Returns the byte value as a number or `null` if stdin is closed.
### **readLine**()
Reads one line of input from stdin. Blocks the current fiber until a full line