IO::EventSourceIOEventInterrupt

class Interrupt

A thread safe synchronisation primative.

Definitions

def signal

Send a single byte interrupt.

Implementation

def signal
	# This must not block or enter blocking operations or raise an exception.
	# Note that `Scheduler#unblock` defers exceptions, so `IOError` will not be raised by `@output.close` until later.
	@output.write_nonblock(".", exception: false) rescue nil
end