module State: sig .. end
A file descriptor being monitored by a file_descr_watcher is in one of two states:
Watching or Stop_requested. When one initially requests that the fd be monitored
via request_start_watching, it starts in the Watching state. Later, when one
calls request_stop_watching, it transitions to the Stop_requested state. Finally,
when the client is notified via post_check of the status of the file descriptor,
it is removed from the file_descr_watcher.
type 'a t =
| |
Watching of 'a |
| |
Stop_requested |
val sexp_of_t : ('a -> Sexplib.Sexp.t) -> 'a t -> Sexplib.Sexp.t