Packmatic.Source.Stream (Packmatic v1.1.2) View Source

Represents content generated by enumerating a Stream, which returns IO Lists.

Any data type that implements Enumerable can be used as the Initialisation Argument for this Source. Usually this would be a Stream that you have created elsewhere.

In case the data type needs to be dynamically generated, you can instead use a Dynamic source, i.e. Packmatic.Source.Dynamic, and build the actual enum there.

Link to this section Summary

Link to this section Types

Specs

init_arg() :: Enumerable.t()

Specs

init_result() :: {:ok, t()}

Specs

t() :: %Packmatic.Source.Stream{continuation: nil | Enumerable.continuation()}