package tezos-dal-node-lib

  1. Overview
  2. Docs
Tezos: `tezos-dal-node` library

Install

Dune Dependency

Authors

Maintainers

Sources

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

doc/tezos-dal-node-lib.gossipsub/Tezos_dal_node_lib_gossipsub/Gossipsub/Worker/Stream/index.html

Module Worker.StreamSource

A mutable (FIFO) stream of data.

Sourcetype 'a t

The stream data structure.

Sourceval empty : unit -> 'a t

Create a new empty stream.

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

Push the given value into the stream.

Sourceval 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.

Sourceval get_available : 'a t -> 'a list

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

OCaml

Innovation. Community. Security.