pub trait Blocker: Debug + Named {
    // Required method
    fn block(&self, dur: Duration);
}
Expand description

A trait for blocking current thread.

Required Methods§

source

fn block(&self, dur: Duration)

Block current thread for a while.

Implementors§