class IO

def readable?

@returns [Boolean] True if the IO is readable (not closed).
Check if the IO is readable.
def readable?
	# Do not call `eof?` here as it is not concurrency-safe and it can block.
	!closed?
end