referrerpolicy=no-referrer-when-downgrade

Trait substrate_test_client::BlockchainEventsExt

source ·
pub trait BlockchainEventsExt<C, B>
where C: BlockchainEvents<B>, B: BlockT,
{ // Required method fn wait_for_blocks( &self, count: usize, ) -> Pin<Box<dyn Future<Output = ()> + Send>>; }
Expand description

An extension trait for BlockchainEvents.

Required Methods§

source

fn wait_for_blocks( &self, count: usize, ) -> Pin<Box<dyn Future<Output = ()> + Send>>

Wait for count blocks to be imported in the node and then exit. This function will not return if no blocks are ever created, thus you should restrict the maximum amount of time of the test execution.

Implementors§

source§

impl<C, B> BlockchainEventsExt<C, B> for C
where C: BlockchainEvents<B>, B: BlockT,