core :: PollableReader :: poll_in
# Is there something to read? (without blocking) fun poll_in: Bool is abstract
redef fun poll_in do var res = native_poll_in(fd) if res == -1 then last_error = new IOError(errno.to_s) return false else return res > 0 end
redef fun poll_in do return ready_to_read(0)
redef fun poll_in do return origin.poll_in