[][src]Crate executors

This crate provides a number of task executors all implementing the Executor trait.

General examples can be found in the Executor trait documentation, and implementation specific examples with each implementation module.

Re-exports

pub use crate::common::CanExecute;
pub use crate::common::Executor;
pub use crate::futures_executor::FuturesExecutor;
pub use crate::futures_executor::JoinHandle;

Modules

bichannel

A simple abstraction for bidirectional 1-to-1 channels built over std::sync::mpsc.

common

The core traits and reusable functions of this crate.

crossbeam_channel_pool

A thread pool Executor used to execute functions in parallel.

crossbeam_workstealing_pool

A thread pool Executor used to execute functions in parallel.

futures_executor

Support for Rust's futures and async/await APIs

numa_utils

This module contains helpers for executors that are NUMA-ware.

parker

A reusable thread-pool-parking mechanism.

run_now

A simple Executor that simply runs tasks immediately on the current thread.

threadpool_executor

A thread pool Executor used to execute functions in parallel.

Functions

try_execute_locally

Tries run the job on the same executor that spawned the thread running the job.