Handle errors with fiber usage.

This commit is contained in:
Bob Nystrom
2014-01-13 06:58:27 -08:00
parent 52a6d6d69c
commit 4b8b676ffe
6 changed files with 38 additions and 4 deletions
+6
View File
@@ -0,0 +1,6 @@
var fiber = Fiber.create(fn {
IO.print("run")
})
fiber.run // expect: run
fiber.run // expect runtime error: Cannot run a finished fiber.