Module task_executor

Module task_executor 

Source

Structs§

Receiver
基于 features 的 channel 类型定义 启用 crossbeam_channel feature 时使用 crossbeam::channel,否则使用 std::sync::mpsc The receiving side of a channel.
Sender
基于 features 的 channel 类型定义 启用 crossbeam_channel feature 时使用 crossbeam::channel,否则使用 std::sync::mpsc The sending side of a channel.
TaskExecutor
统一的线程池执行器,支持通过 features 切换 channel 实现

Enums§

TryRecvError
基于 features 的 channel 类型定义 启用 crossbeam_channel feature 时使用 crossbeam::channel,否则使用 std::sync::mpsc An error returned from the try_recv method.

Functions§

bounded
基于 features 的 channel 类型定义 启用 crossbeam_channel feature 时使用 crossbeam::channel,否则使用 std::sync::mpsc Creates a channel of bounded capacity.
unbounded
基于 features 的 channel 类型定义 启用 crossbeam_channel feature 时使用 crossbeam::channel,否则使用 std::sync::mpsc Creates a channel of unbounded capacity.