retort v2.5.0 Retort.Client.Stream View Source
Streams the resources from all the pages available on an Retort.Client.index/3.
Link to this section Summary
Functions
A new stream of pid’s Retort.Client.index/3 starting with the given params and timeout for
each request
Link to this section Types
Link to this type
t()
View Source
t() :: %Retort.Client.Stream{pagination: Alembic.Pagination.t, params: map, pid: pid, timeout: timeout}
The internal state of stream produced by new/3.
params- the params passed toRetort.Client.index/3. After the initial call,"page[number]"and"page[size]"will be overridden with theAlembic.Pagination.tnextAlembic.Pagination.Page.tnumberandsize.pid- thepidof anRetort.Clienttimeout- the timeout for eachRetort.Client.index/3call
Link to this section Functions
Link to this function
new(pid, params \\ %{}, timeout \\ 5000)
View Source
new(pid, map, timeout) :: Enumerable.t
A new stream of pid’s Retort.Client.index/3 starting with the given params and timeout for
each request.