class Async::Scheduler
def scheduler_close(error = $!)
Invoked when the fiber scheduler is being closed.
def scheduler_close(error = $!) # If the execution context (thread) was handling an exception, we want to exit as quickly as possible: unless error self.run end ensure self.close end