feat: add Stdin class with readLine and async stdin read support in io module

This commit is contained in:
Bob Nystrom
2015-10-17 04:05:24 +00:00
parent 6f67fda56a
commit 9e6f778147
12 changed files with 263 additions and 16 deletions
+9
View File
@@ -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.