package lsp

  1. Overview
  2. Docs
LSP protocol implementation in OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

jsonrpc-1.6.0.tbz
sha256=35e8c7341f8eb1fa39fb0f0e0701a7ed90b9a0bb89ccf84b7ed997cd258cbec3
sha512=c96a7a3ca845ec193e9edc4a74804a22d6e37efc852b54575011879bd2105e0df021408632219f542ca3ad85b36b5c8b72f2b417204d154d5f0dd0839535afa5

doc/lsp.fiber/Fiber/Stream/index.html

Module Fiber.StreamSource

Destructive streams that can be composed to pipelines.

Streams can be finite or infinite. Streams have no storage and can only have one writer and/or one reader at any given time. If you'd like to access a stream concurrently, you need to protect it via a mutex.

Trying to access the same side of a stream concurrently will result in an error.

Sourcemodule In : sig ... end
Sourcemodule Out : sig ... end
Sourceval connect : 'a In.t -> 'a Out.t -> unit t

connect i o reads from i and writes to o. Closes o when i is exhausted. Returned fiber terminates when i is exhausted

Sourceval supply : 'a In.t -> 'a Out.t -> unit t

supply i o like connect i o but does not close o once i is exhausted, allowing more values to be pused to o. Returned fiber terminates when i is exhausted

Sourceval pipe : unit -> 'a In.t * 'a Out.t

pipe () returns (i, o) where values pushed through o can be read through i.

OCaml

Innovation. Community. Security.