pub async fn wait_until_exact<T: Invocation>(
        &self,
        expected_target_moniker: &str,
    ) -> Result<T, Error> {
        loop {
            let invocation = self.wait_until_type::<T>().await?;
            if invocation.target_moniker() == expected_target_moniker {
                return Ok(invocation);
            }
            invocation.resume().await?;
        }
    }
/// Waits for an invocation of a particular type and target moniker.
/// Implicitly resumes all other invocations.
/// Returns the casted type if successful and an error otherwise.
Waits for an invocation of a particular type and target moniker.
Implicitly resumes all other invocations.
Returns the casted type if successful and an error otherwise.
Waits for an invocation of a particular type and target moniker . Implicitly resumes all other invocations . Returns the casted type if successful and an error otherwise .
pub async fn wait_until_exact<T: Invocation>(
        &self,
        expected_target_moniker: &str,
    ) -> Result<T, Error> {
        loop {
            let invocation = self.wait_until_type::<T>().await?;
            if invocation.target_moniker() == expected_target_moniker {
                return Ok(invocation);
            }
            invocation.resume().await?;
        }
    }
pub async fn wait_until_exact < T : Invocation > ( & self , expected_target_moniker : & str , ) -> Result < T , Error > { loop { let invocation = self . wait_until_type :: < T > ( ) . await ? ; if invocation . target_moniker ( ) == expected_target_moniker { return Ok ( invocation ) ; } invocation . resume ( ) . await ? ; } }
Waits for an invocation of a particular type and target moniker.
Waits for an invocation of a particular type and target moniker .
&self
expected_target_moniker
&str