package luv

  1. Overview
  2. Docs
Binding to libuv: cross-platform asynchronous I/O

Install

Dune Dependency

Authors

Maintainers

Sources

luv-0.5.14.tar.gz
sha256=8e01b4a50c8876cdd98d8e245c0687c4dc4d883aed161ad9c5ace1fb1fdaae99

doc/luv/Luv/Request/index.html

Module Luv.RequestSource

Requests.

See Requests in the user guide and uv_req_tBase request in libuv.

Requests are objects libuv uses to track asynchronous operations, and sometimes to communicate their results. For the most part Luv handles requests automatically.

Some request kinds support cancelation, and Luv provides a common function Luv.Request.cancel for them.

Apart from that, this module would be only an internal convenience for the implementation of Luv.

The full list of exposed concrete request types:

Sourcetype 'kind t = 'kind Luv_c_types.Request.t Ctypes.ptr

Binds uv_req_t.

Sourceval cancel : [< `File | `Addr_info | `Name_info | `Random | `Thread_pool ] t -> (unit, Error.t) result

Tries to cancel a pending request.

Binds uv_cancel.

OCaml

Innovation. Community. Security.