class Async::Scheduler
def kernel_sleep(duration = nil)
@asynchronous May be non-blocking.
@public Since *Async v2* and *Ruby v3.1*.
Sleep for the specified duration.
def kernel_sleep(duration = nil) if duration self.block(nil, duration) else self.transfer end end