lib/kernel/sync.rb in async-1.24.2 vs lib/kernel/sync.rb in async-1.25.0

- old
+ new

@@ -24,10 +24,10 @@ module Kernel # Run the given block of code synchronously, but within a reactor if not already in one. def Sync(&block) if task = ::Async::Task.current? - yield + yield task else ::Async::Reactor.run(&block).wait end end end