Enum jsonrpc_server_utils::reactor::Executor [−][src]
pub enum Executor {
Shared(TaskExecutor),
Spawned(RpcEventLoop),
}Initialized Executor
Variants
Shared instance
Spawned(RpcEventLoop)Spawned Event Loop
Implementations
impl Executor[src]
impl Executor[src]pub fn executor(&self) -> TaskExecutor[src]
Get tokio executor associated with this event loop.
pub fn spawn<F>(&self, future: F) where
F: Future<Item = (), Error = ()> + Send + 'static, [src]
F: Future<Item = (), Error = ()> + Send + 'static,
Spawn a future onto the Tokio runtime.
pub fn close(self)[src]
Closes underlying event loop (if any!).
pub fn wait(self)[src]
Wait for underlying event loop to finish (if any!).