package dune-rpc

  1. Overview
  2. Docs

Parameters

module Fiber : Fiber
module Chan : sig ... end

Signature

type t
module Versioned : sig ... end
val request : ?id:Id.t -> t -> ('a, 'b) Versioned.request -> 'a -> ('b, Response.Error.t) result Fiber.t
val notification : t -> 'a Versioned.notification -> 'a -> unit Fiber.t
val disconnected : t -> unit Fiber.t
module Stream : sig ... end
val poll : ?id:Id.t -> t -> 'a Sub.t -> ('a Stream.t, Version_error.t) result Fiber.t
module Batch : sig ... end
module Handler : sig ... end
type proc =
  1. | Request : ('a, 'b) Decl.request -> proc
  2. | Notification : 'a Decl.notification -> proc
  3. | Poll : 'a Procedures.Poll.t -> proc
val connect_with_menu : ?handler:Handler.t -> private_menu:proc list -> Chan.t -> Initialize.Request.t -> f:(t -> 'a Fiber.t) -> 'a Fiber.t
val connect : ?handler:Handler.t -> Chan.t -> Initialize.Request.t -> f:(t -> 'a Fiber.t) -> 'a Fiber.t
OCaml

Innovation. Community. Security.