package dune-rpc

  1. Overview
  2. Docs
type t
type 'a fiber
type chan
module Versioned : sig ... end
val request : ?id:Id.t -> t -> ('a, 'b) Versioned.request -> 'a -> ('b, Response.Error.t) Stdune.result fiber
val notification : t -> 'a Versioned.notification -> 'a -> unit fiber
val disconnected : t -> unit fiber
module Stream : sig ... end
val poll : ?id:Id.t -> t -> 'a Sub.t -> ('a Stream.t, Version_error.t) Stdune.result fiber
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 -> Initialize.Request.t -> f:(t -> 'a fiber) -> 'a fiber
val connect : ?handler:Handler.t -> chan -> Initialize.Request.t -> f:(t -> 'a fiber) -> 'a fiber