mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-16 20:28:04 +01:00
10 lines
161 B
Plaintext
10 lines
161 B
Plaintext
import "io" for Stdin
|
|
|
|
Stdin.readLine() // stdin: one line
|
|
|
|
var error = Fiber.new {
|
|
Stdin.readByte()
|
|
}.try()
|
|
|
|
System.print(error) // expect: Stdin was closed.
|