Trait polkadot_node_primitives::approval::time::Clock
source · pub trait Clock {
// Required methods
fn tick_now(&self) -> Tick;
fn wait(
&self,
tick: Tick,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'static>>;
}
Expand description
A clock which allows querying of the current tick as well as waiting for a tick to be reached.