with_source_stop

Function with_source_stop 

Source
pub fn with_source_stop<T>(
    source: SourceStopHandle,
    operation: impl FnOnce() -> T,
) -> T
Expand description

Install only a validated source capability’s shared terminal handle. The lexical guard restores the previous handle on return and unwind.