package lwt

Build not yet checked
  1. Overview
  2. Docs
Promises and event-driven I/O

Install

dune-project
 Dependency

Authors

Maintainers

Sources

6.1.3.tar.gz
md5=41506fecd8e8840c4eb848a212de7ebf
sha512=b00d615d145f8a08aeb5c69967f9d43c3b67b88a416e2c93b33ca95a75198254e8d707bc76443480ead28e6889bc604d5ecb17d2d02cd7dc2a1e60d497aa9c24

doc/lwt.unix/Lwt_engine/class-poll_based/index.html

Class Lwt_engine.poll_basedSource

Abstract class for engines based on a poll-like function.

inherit t
method private virtual poll : (Unix.file_descr * bool * bool) list -> float -> (Unix.file_descr * bool * bool) list

poll fds tiomeout, where fds is a list of tuples of the form (fd, check_readable, check_writable), waits for either:

  • one of the file descriptor with check_readable set to true to become readable
  • one of the file descriptor with check_writable set to true to become writable
  • timeout to expire

and returns the list of file descriptors with their readable and writable status.