std Error for BlockingError

#93
This commit is contained in:
Kornel Lesiński 2020-03-13 12:35:20 +00:00
parent 7105091e51
commit 0dd5a7ce1d
1 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,8 @@ pub enum BlockingError<E: fmt::Debug> {
Canceled,
}
impl<E: fmt::Debug> std::error::Error for BlockingError<E> {}
/// Execute blocking function on a thread pool, returns future that resolves
/// to result of the function execution.
pub fn run<F, I, E>(f: F) -> CpuFuture<I, E>