package dune-rpc

  1. Overview
  2. Docs
Communicate with dune using rpc

Install

Dune Dependency

Authors

Maintainers

Sources

dune-3.16.0.tbz
sha256=5481dde7918ca3121e02c34d74339f734b32d5883efb8c1b8056471e74f9bda6
sha512=529f937c61bc9ea7b135c2425f2d730478b48e6ab6b6455c354138d27b76bd43afce40d4784a6f183d6308d3cf0f5d5cea5bea070f83442949762ed818fb44bc

doc/src/dune-rpc.private/sub.ml.html

Source file sub.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
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
OCaml

Innovation. Community. Security.