package octez-libs

  1. Overview
  2. Docs
A package that contains multiple base libraries used by the Octez suite

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-18.1.tar.gz
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a

doc/octez-libs.tezos-gossipsub/Tezos_gossipsub/Worker/argument-1-C/Stream/index.html

Module C.Stream

A mutable (FIFO) stream of data.

type 'a t

The stream data structure.

val empty : unit -> 'a t

Create a new empty stream.

val push : 'a -> 'a t -> unit

Push the given value into the stream.

val pop : 'a t -> 'a Monad.t

Pops the oldest value that has been pushed to the stream. In case the stream is empty, the function will wait until some value is pushed.

val get_available : 'a t -> 'a list

Returns and removes all available elements of the stream l without blocking.

OCaml

Innovation. Community. Security.