Skip to content

Commit

Permalink
Add documentation for with_pipeline function
Browse files Browse the repository at this point in the history
  • Loading branch information
xvw committed Jun 9, 2024
1 parent 40046d6 commit a321b53
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ocaml-lsp-server/src/document.mli
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,13 @@ module Merlin : sig

val timer : t -> Lev_fiber.Timer.Wheel.task

(** uses a single pipeline, provisioned by the configuration attached to the
merlin document (via {!type:t}). *)
val with_pipeline_exn : ?name:string -> t -> (Mpipeline.t -> 'a) -> 'a Fiber.t

(** Like {!val:with_pipeline_exn} but where the merlin configuration is
supplied manually. If, for example, it is computed outside the execution
of the pipeline.*)
val with_configurable_pipeline_exn :
?name:string -> config:Mconfig.t -> t -> (Mpipeline.t -> 'a) -> 'a Fiber.t

Expand Down

0 comments on commit a321b53

Please sign in to comment.