Add Stdin.readByte().
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import "io" for Stdin
|
||||
|
||||
Stdin.readLine() // stdin: one line
|
||||
|
||||
var error = Fiber.new {
|
||||
Stdin.readLine()
|
||||
}.try()
|
||||
|
||||
System.print(error) // expect: Stdin was closed.
|
||||
Reference in New Issue
Block a user