package luv

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Binds uv_poll_event.

type t = [
  1. | `READABLE
  2. | `WRITABLE
  3. | `DISCONNECT
  4. | `PRIORITIZED
]

Binds uv_poll_event.

`DISCONNECT is implemented starting with libuv 1.9.0. On earlier versions, trying to register for `DISCONNECT events does nothing, and, correspondingly, user code cannot receive a `DISCONNECT event. The OCaml code will still compile.

Similarly, `PRIORITIZED requires libuv 1.14.0.

Feature checks:

  • Luv.Require.(has disconnect)
  • Luv.Require.(has prioritized)
OCaml

Innovation. Community. Security.