Crate executors [] [src]

A set of utilities to abstract tasks execution.

Tasks can be executed in the same thread, multiple threads (pool) or you can control when and in which thread the tasks are consumed.

Macros

trivial_ordering!

Structs

ClosureTask

Type for tasks that are just closures

Executors

Utility structure to create possible executors.

Future
ManualExecutor

Manual executor. You can add tasks to it but you need to manually specify when the tasks should be invoked.

SameThreadExecutor

Synchronous executor implementation

TaskQueueElement

Single element inside a TaskQueue. Represents

ThreadPoolExecutor

Executor with thread pool

Traits

Async

A value representing an asynchronous computation

Executor

Abstraction over task execution

Task

Some work to be done in a thread pool

TaskQueue

PriorityQueue of tasks waiting for execution