package luv

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

Install

Dune Dependency

Authors

Maintainers

Sources

luv-0.5.12.tar.gz
sha256=769f6a08862a49d44e20043e270ef7177bcc7bb8679037bc06065622634c56c0
md5=57b2063e489cbbcfea3a238ced0dd297

doc/luv/Luv/Async/index.html

Module Luv.AsyncSource

Inter-loop communication.

See Inter-thread communication in the user guide and uv_async_t — Async handle in libuv.

Sourcetype t = [ `Async ] Handle.t

Binds uv_async_t.

Note that values of this type can be passed to functions in Luv.Handle, in addition to the functions in this module. In particular, see Luv.Handle.close.

Sourceval init : ?loop:Loop.t -> (t -> unit) -> (t, Error.t) result

Allocates and initializes an async handle.

Binds uv_async_init.

The handle should be cleaned up with Luv.Handle.close when no longer needed.

Sourceval send : t -> (unit, Error.t) result

Triggers a call to the handle's callback by the handle's loop.

Binds uv_async_send.

OCaml

Innovation. Community. Security.