Unify Fiber.try() with the other methods to execute fibers.

This commit is contained in:
Bob Nystrom
2016-03-03 17:00:33 -08:00
parent d717ddf817
commit 9fda7cb526
3 changed files with 19 additions and 31 deletions
+6
View File
@@ -0,0 +1,6 @@
var fiber = Fiber.new {
System.print("try")
}
fiber.try() // expect: try
fiber.try() // expect runtime error: Cannot try a finished fiber.