[][src]Function actix_dynamic_threadpool::run

pub fn run<F, I, E>(f: F) -> CpuFuture<I, E>

Notable traits for CpuFuture<I, E>

impl<I, E: Debug> Future for CpuFuture<I, E> type Output = Result<I, BlockingError<E>>;
where
    F: FnOnce() -> Result<I, E> + Send + 'static,
    I: Send + 'static,
    E: Send + Debug + 'static, 

Execute blocking function on a thread pool, returns future that resolves to result of the function execution.