mirror of
https://github.com/zap-proto/ocaml-rpc.git
synced 2026-10-30 15:04:28 +00:00
Makes it match the new package names, and also will shrink the diff for the Eio port.
14 lines
372 B
OCaml
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
|