Skip to main content

stream_events

Function stream_events 

Source
pub fn stream_events(
    client: &TaskFastClient,
    start_cursor: Option<String>,
    opts: PollOptions,
) -> impl Stream<Item = Result<AgentEvent>> + '_
Expand description

Long-running event stream. The returned Stream never ends on its own — drop it when the consumer is done. Each Result item is independent: the stream surfaces transient errors but does not abort, so consumers can .next() again to retry.