9 lines
176 B
JavaScript
9 lines
176 B
JavaScript
|
|
var main = Fiber.current
|
||
|
|
System.print("Start")
|
||
|
|
Fiber.new {
|
||
|
|
System.print("In new fiber")
|
||
|
|
main.transfer()
|
||
|
|
System.print("Resumed")
|
||
|
|
}.transfer()
|
||
|
|
System.print("Back in main")
|