package lwt_eio

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val await_lwt : 'a Lwt.t -> 'a

await_lwt p allows an Eio fibre to wait for a Lwt promise p to be resolved, much like Eio.Promise.await does for Eio promises. This can only be used while the event loop created by with_event_loop is still running.

val await_eio : 'a Eio.Promise.t -> 'a Lwt.t

await_eio p allows a Lwt thread to wait for an Eio promise p to be resolved. This can only be used while the event loop created by with_event_loop is still running.

val await_eio_result : 'a Eio.Promise.or_exn -> 'a Lwt.t

await_eio_result is like await_eio, but allows failing the lwt thread too.

OCaml

Innovation. Community. Security.