package fiber

  1. Overview
  2. Docs
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 fiber) -> 'a t

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

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

Innovation. Community. Security.