package lwt

  1. Overview
  2. Docs
Promises and event-driven I/O

Install

dune-project
 Dependency

Authors

Maintainers

Sources

6.0.0-alpha00.tar.gz
md5=8a88c5d5fcb01d179bbb12e6b6888dca
sha512=bfecd3fa0a3461a3368bd7724e2fce7a751ba3899d590d5b08bc4257b058ca34ec25de1a3ead6585528afe77c6ca6db1c3e2d2421d6a773c845ef091472d2ed9

doc/lwt.unix/Lwt_io/Versioned/index.html

Module Lwt_io.VersionedSource

Versioned variants of APIs undergoing breaking changes.

Sourceval establish_server_1 : ?fd:Lwt_unix.file_descr -> ?buffer_size:int -> ?backlog:int -> Unix.sockaddr -> ((input_channel * output_channel) -> unit) -> server

Old version of Lwt_io.establish_server. The current Lwt_io.establish_server automatically closes channels passed to the callback, and notifies the caller when the server's listening socket is bound.

  • since 2.7.0
Sourceval establish_server_2 : ?fd:Lwt_unix.file_descr -> ?buffer_size:int -> ?backlog:int -> ?no_close:bool -> Unix.sockaddr -> ((input_channel * output_channel) -> unit Lwt.t) -> server Lwt.t

Since Lwt 3.0.0, this is just an alias for Lwt_io.establish_server.

  • since 2.7.0
Sourceval shutdown_server_1 : server -> unit

Old version of Lwt_io.shutdown_server. The current Lwt_io.shutdown_server returns a promise, which resolves when the server's listening socket is closed.

  • since 2.7.0
Sourceval shutdown_server_2 : server -> unit Lwt.t

Since Lwt 3.0.0, this is just an alias for Lwt_io.shutdown_server.

  • since 2.7.0
OCaml

Innovation. Community. Security.