event_stream_from_view_with_options

Function event_stream_from_view_with_options 

Source
pub fn event_stream_from_view_with_options(
    neighbors_view: &ViewProxy,
    options: EntryIteratorOptions,
) -> Result<impl Stream<Item = Result<Event, EntryIteratorError>> + 'static, OpenEntryIteratorError>
Expand description

Connects to the neighbor table entry iterator protocol with EntryIteratorOptions and converts the Hanging-Get style API into an Event stream.

Each call to GetNext returns a batch of events, which are flattened into a single stream. If an error is encountered while calling GetNext or while converting the event, the stream is immediately terminated.