Skip to main content

arc_event_link

Function arc_event_link 

Source
pub fn arc_event_link<T, C>() -> (Arc<EventLink<T, C>>, Arc<EventLink<T, C>>)
Expand description

Creates a linked (writer, reader) pair for cross-thread event streaming.

Both handles begin pointing at the same empty sentinel node. The writer appends events via EventPusher; the reader chases the list and yields them via EventIterator.