forked from Orchid/orchid
FIxed the timer and the example
This commit is contained in:
9
examples/yes/main.orc
Normal file
9
examples/yes/main.orc
Normal file
@@ -0,0 +1,9 @@
|
||||
import system::async::(set_timer, yield)
|
||||
import system::io::(readln, println)
|
||||
import std::exit_status
|
||||
|
||||
const main := (
|
||||
set_timer true 1 (println "y" yield) \cancel.
|
||||
readln \a.
|
||||
cancel exit_status::success
|
||||
)
|
||||
Reference in New Issue
Block a user