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 -> context
val my_context : unit -> context
val cancel : context -> unit
val async : ?ctxt:context -> ('a -> 'b) -> 'a -> 'b promise
async 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 -> 'a
e
if
the promise raises e
.Promise_cancelled
if the promise was cancelled.val yield : unit -> unit
val accept : file_descr -> file_descr * sockaddr
val recv : file_descr -> bytes -> int -> int -> msg_flag list -> int
val send : file_descr -> bytes -> int -> int -> msg_flag list -> int
val sleep : float -> unit
sleep t
suspends the fiber for t
milliseconds.val run : (unit -> unit) -> unit