This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
14
unikernel/duniverse/dune_/otherlibs/dune-rpc/private/sub.ml
Normal file
14
unikernel/duniverse/dune_/otherlibs/dune-rpc/private/sub.ml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
open Types
|
||||
|
||||
type 'a t =
|
||||
{ poll : (Id.t, 'a option) Decl.Request.witness
|
||||
; cancel : Id.t Decl.Notification.witness
|
||||
}
|
||||
|
||||
let of_procedure p =
|
||||
let open Procedures.Poll in
|
||||
{ poll = (poll p).decl; cancel = (cancel p).decl }
|
||||
;;
|
||||
|
||||
let poll t = t.poll
|
||||
let poll_cancel t = t.cancel
|
||||
Loading…
Add table
Add a link
Reference in a new issue