module Aeio:sig..end
0.2.0 — homepage
typefile_descr =Unix.file_descr
typesockaddr =Unix.sockaddr
typemsg_flag =Unix.msg_flag
type 'a promise
type context
exception Cancelled
exception Promise_cancelled
Aeio.await if the promise was cancelled.val new_context : unit -> contextval my_context : unit -> contextval cancel : context -> unitval async : ?ctxt:context -> ('a -> 'b) -> 'a -> 'b promiseasync f v spawns a fiber to run f v asynchronously. If no cancellation
context was provided, then the new fiber shares the cancelallation context
of the caller.val await : 'a promise -> 'ae if
the promise raises e.Promise_cancelled if the promise was cancelled.val yield : unit -> unitval accept : file_descr -> file_descr * sockaddrval recv : file_descr -> bytes -> int -> int -> msg_flag list -> intval send : file_descr -> bytes -> int -> int -> msg_flag list -> intval sleep : float -> unitsleep t suspends the fiber for t milliseconds.val run : (unit -> unit) -> unit