socket :: TCPStream :: ready_to_read
timeout : Time in milliseconds before stopping to wait for events
# Easier use of pollin to check for something to read on all channels of any priority
#
# timeout : Time in milliseconds before stopping to wait for events
fun ready_to_read(timeout: Int): Bool
do
var events = [new NativeSocketPollValues.pollin]
return pollin(events, timeout).length != 0
end
lib/socket/socket.nit:130,2--137,4