package tezos-dal-node-lib

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

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-18.0.tar.gz
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a

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.