module Kernel
def Sync(&block)
def Sync(&block) if task = ::Async::Task.current? yield task else ::Async::Reactor.run( finished: ::Async::Condition.new, &block ).wait end end
def Sync(&block) if task = ::Async::Task.current? yield task else ::Async::Reactor.run( finished: ::Async::Condition.new, &block ).wait end end