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.0.tar.gz
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a

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.