pub trait WaitingExt {
    // Required methods
    fn wait_for_n_sessions<'life0, 'async_trait>(
        &'life0 self,
        n: SessionIndex,
        status: BlockStatus
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn wait_for_n_eras<'life0, 'async_trait>(
        &'life0 self,
        n: EraIndex,
        status: BlockStatus
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

nWaiting from the current moment of time API

Required Methods§

source

fn wait_for_n_sessions<'life0, 'async_trait>( &'life0 self, n: SessionIndex, status: BlockStatus ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Wait for a given number of sessions to wait from a current session. n - number of sessions to wait from now

source

fn wait_for_n_eras<'life0, 'async_trait>( &'life0 self, n: EraIndex, status: BlockStatus ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Wait for a given number of eras to wait from a current era. n - number of eras to wait from now

Implementors§