Packmatic.Source.Stream (Packmatic v2.0.0)
View SourceRepresents 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.
Summary
Types
@type init_arg() :: Enumerable.t()
@type init_result() :: {:ok, t()}
@type t() :: %Packmatic.Source.Stream{continuation: nil | Enumerable.continuation()}