Convert fiber tests to use block arguments.

This commit is contained in:
Bob Nystrom
2014-04-02 17:31:58 -07:00
parent dc366185bd
commit cc56ac4da7
13 changed files with 45 additions and 27 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
var fiber = Fiber.create(fn {
var fiber = Fiber.create {
IO.print("1")
Fiber.yield
IO.print("2")
})
}
IO.print(fiber.isDone) // expect: false
fiber.run // expect: 1