Adds a file handle to the event loop. When the handle has data available to read
(if events & FileEvents.read) or write (if events & FileEvents.write), a message
FileReadyToRead and/or FileReadyToWrite will be dispatched.
note: the file you add should be nonblocking and you should be sure anything in the
buffers is already handled, since you won't get events for data that already exists
Adds a file handle to the event loop. When the handle has data available to read (if events & FileEvents.read) or write (if events & FileEvents.write), a message FileReadyToRead and/or FileReadyToWrite will be dispatched.
note: the file you add should be nonblocking and you should be sure anything in the buffers is already handled, since you won't get events for data that already exists