Still have some edge cases to implement but the basics are in
place and working now.
This commit is contained in:
Bob Nystrom
2014-01-12 11:02:07 -08:00
parent 86d93296ab
commit f3a1f7e677
15 changed files with 306 additions and 40 deletions
+19
View File
@@ -0,0 +1,19 @@
var b = Fiber.create(fn {
IO.print("fiber b")
})
var a = Fiber.create(fn {
IO.print("begin fiber a")
b.run
IO.print("end fiber a")
})
IO.print("begin main")
a.run
IO.print("end main")
// expect: begin main
// expect: begin fiber a
// expect: fiber b
// expect: end fiber a
// expect: end main