examples/core/spawn.rb in
polyphony-0.16
vs examples/core/spawn.rb in
polyphony-0.17
- old
+ new
@@ -7,8 +7,8 @@
puts "going to sleep..." sleep t puts "woke up" end
-spawn do
+coproc do
async { my_sleep(1) }.await end