diff options
| author | Marcos Magueta <maguetamarcos@gmail.com> | 2026-09-09 22:12:44 -0300 |
|---|---|---|
| committer | Marcos Magueta <maguetamarcos@gmail.com> | 2026-09-11 01:07:40 -0300 |
| commit | 0a9446795bd19a3017482f702df01ebaadadfd48 (patch) | |
| tree | b48fa97d07ad0b4c91517aa2d5739f43c17db51b /lib/protocols/Context.mli | |
| parent | 6ed1f50733d86d0da2adbde9e650f53f828f638e (diff) | |
| download | RNT-0a9446795bd19a3017482f702df01ebaadadfd48.tar.gz RNT-0a9446795bd19a3017482f702df01ebaadadfd48.zip | |
cursor and context
Diffstat (limited to '')
| -rw-r--r-- | lib/protocols/Context.mli | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/protocols/Context.mli b/lib/protocols/Context.mli new file mode 100644 index 0000000..ec585cd --- /dev/null +++ b/lib/protocols/Context.mli @@ -0,0 +1,15 @@ +type t + +class type implementation = object + method resolve : string -> (Handle.t option, Concepts.Condition.condition) result + method cancelled : bool + method charge : int -> (unit, Concepts.Condition.condition) result + method nest : ?authority:string BatSet.t -> unit -> implementation +end + +val make : #implementation -> t +val resolve : t -> string -> (Handle.t option, Concepts.Condition.condition) result +val require : t -> string -> (Handle.t, Concepts.Condition.condition) result +val cancelled : t -> bool +val charge : t -> int -> (unit, Concepts.Condition.condition) result +val nest : ?authority:string BatSet.t -> t -> t |
