Function netstack_testing_common::wait_for_component_stopped

source ยท
pub async fn wait_for_component_stopped(
    realm: &TestRealm<'_>,
    component_moniker: &str,
    status_matcher: Option<ExitStatusMatcher>,
) -> Result<Stopped>
Expand description

Like wait_for_component_stopped_with_stream but retrieves an event stream for the caller.

Note that this function fails to observe stop events that happen in early realm creation, which is especially true for eager components.