class Async::Scheduler

def terminate

Terminate the scheduler. We deliberately ignore interrupts here, as this code can be called from an interrupt, and we don't want to be interrupted while cleaning up.
def terminate
	Thread.handle_interrupt(::Interrupt => :never) do
		super
	end
end