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
+12
View File
@@ -0,0 +1,12 @@
var fiber = Fiber.create(fn {
IO.print("fiber")
})
IO.print("before") // expect: before
fiber.run // expect: fiber
IO.print("after") // expect: after
// TODO: Test handles error if fiber tries to run itself.
// TODO: Test create is passed right argument type.
// TODO: Test closing over stuff in fiber function.
// TODO: Test running a finished fiber.