sealrs 0.13.2

Set of classic asynchronous primitives (Actors, Executors, Futures / Promises)
Documentation
1
2
3
4
5
6
7
8
9
10
//! Basic trait for all executors

use std::any::Any;

pub type ExecutorTask = Box<FnMut() -> () + Send>;

pub trait Executor {
    fn execute(&mut self, f: ExecutorTask, options: Option<Box<Any>>);
    fn stop(&mut self);
}