package lsp

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 'a t

Stream outputs.

A Out.t value represents the side of a stream where values can be pushed to. Only one value can be pushed at a time. Trying to push two values concurrently will result in an error.

val create : ('a option -> unit t) -> 'a t

Create a stream output. The callback is the consumer for values pushed to the stream.

val write : 'a t -> 'a option -> unit t
val null : unit -> 'a t
OCaml

Innovation. Community. Security.