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
+9
View File
@@ -0,0 +1,9 @@
var fiber = Fiber.create(fn {
IO.print("fiber")
})
// The first value passed to the fiber is ignored, since there's no yield call
// to return it.
IO.print("before") // expect: before
fiber.run("ignored") // expect: fiber
IO.print("after") // expect: after