Files
Thomas Leonard 5def4159ff Remove lwt from directory names
Makes it match the new package names, and also will shrink the diff for
the Eio port.
2024-11-07 13:16:31 +00:00

14 lines
372 B
OCaml

(** A local promise for a capability.
Queues messages locally. *)
module Make(C : S.CORE_TYPES) : sig
class type resolver_cap = object
inherit C.cap
method resolve : C.cap -> unit
method break : Exception.t -> unit
end
val local_promise : unit -> resolver_cap
(** A [local_promise ()] is a promise that buffers calls until it is resolved. *)
end