Method: Async::Scheduler#interrupt

Defined in:
lib/async/scheduler.rb

#interruptObject

Interrupt the event loop and cause it to exit.

[View source]

160
161
162
163
# File 'lib/async/scheduler.rb', line 160

def interrupt
	@interrupted = true
	@selector&.wakeup
end