Skip to main content

fail_point_channel

Function fail_point_channel 

Source
pub fn fail_point_channel(
    fp_registry: Arc<FailPointRegistry>,
) -> (FailPointTx, UnboundedReceiver<String>)
Expand description

Creates a failpoint event channel associated with fp_registry.

The returned FailPointTx can be passed to fail_point_send!. The receiver yields the name of each failpoint reached through that macro.