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


init_arg() :: Enumerable.t()


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


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