Add module for Scheduler.

Also reorganizes some code to make it easier to add more modules.
This commit is contained in:
Bob Nystrom
2015-09-13 11:32:39 -07:00
parent f36a795534
commit ea5c3b01eb
18 changed files with 291 additions and 110 deletions
+3 -2
View File
@@ -1,11 +1,12 @@
import "scheduler" for Scheduler
import "timer" for Timer
Timer.schedule {
Scheduler.add {
Timer.sleep(2)
IO.print("a")
}
Timer.schedule {
Scheduler.add {
Timer.sleep(1)
IO.print("b")
}