Pipeline.Streaming.ResultStream (pipeline v0.0.1)
View SourceResult streaming capabilities for pipeline execution.
Provides memory-efficient result passing between steps by streaming large results instead of keeping them in memory.
Summary
Functions
Clean up a result stream and free resources.
Create a result stream from a large result.
Get metadata about a stream.
Read data from a result stream.
Check if a result should be streamed based on size.
Stream data from a result stream in chunks.
Transform a stream with a function.
Types
Functions
@spec cleanup_stream(t()) :: :ok
Clean up a result stream and free resources.
Create a result stream from a large result.
Get metadata about a stream.
Read data from a result stream.
@spec should_stream_result?(non_neg_integer()) :: boolean()
Check if a result should be streamed based on size.
@spec stream_chunks(t()) :: {:ok, Enumerable.t()} | {:error, String.t()}
Stream data from a result stream in chunks.
Transform a stream with a function.