Packmatic.Source.Stream (Packmatic v2.0.0)

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.

Summary

Types

init_arg()

@type init_arg() :: Enumerable.t()

init_result()

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

t()

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