ocaml-opentelemetry/src/client/lwt/io_lwt.ml
2026-01-20 00:15:17 -05:00

11 lines
193 B
OCaml

type 'a t = 'a Lwt.t
let return = Lwt.return
let ( let* ) = Lwt.Syntax.( let* )
let sleep_s = Lwt_unix.sleep
let spawn = Lwt.async
let[@inline] protect ~finally f = Lwt.finalize f finally