1
0
forked from Mirror/wren

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

View File

@ -0,0 +1,7 @@
var fiber = Fiber.new {
System.print("try")
Fiber.abort("err")
}
fiber.try() // expect: try
fiber.try() // expect runtime error: Cannot try an aborted fiber.