Class virtual Cf_poll.file


class virtual ['a] file : [< `R | `W | `X ] -> Unix.file_descr -> object .. end
Use inherit file rwx fd to derive an I/O event object that waits for the file descriptor fd to be ready for reading, writing, or exception (according to the value of rwx).
Inherits
method private virtual service_ : t ->
[ `Exception of exn
| `Final of 'a
| `Loaded of t
| `Unloaded
| `Working of t * 'a ]
The method applied during the polling mux cycle whenever the file fd is ready for I/O. If the value returned is `Working (mux, v), then subsequent applications of self#canget will return true and self#get will return v, but the event will remain loaded in the polling mux waiting for further events on the file descriptor fd.