Crate irox_threading

Source
Expand description

Multithreading and Asynchronous programming tools and utilities

Structs§

Builder
CompletableTask
A CompletableTask is a one-time-use shuttle struct to enable tasks/threads to provide the result of an compute operation. Once the task is completed, any additional attempts to complete the task results in an error.
CurrentThreadExecutor
An Executor that doesn’t spawn new threads, just runs on the current thread.
Exchanger
A thread-safe, shared exchange buffer. Allows multiple producers to push elements in, up to a blocking max capacity. Allows multiple consumers to take elements out, blocking if none available.
LocalCompletableTask
Local, Current thread version of CompletableTask that uses a Rc instead of an Arc for inner storage.
LocalTask
A task that can be run on the current thread.
LocalTaskHandle
A handle to the submitted task, to retrieve the result of the operation
LocalWaker
Local thread Waker struct
MultiThreadedExecutor
SingleThreadExecutor
An executor implementation backed by a single thread.
TaskHandle
A handle to the return result of the submitted task.

Enums§

ExchangerError
Exchanger errors
TaskError

Type Aliases§

LocalFuture
LocalVoidFuture