Module task_executor

Module task_executor 

Source

Structs§

Receiver
Channel type definition based on features Use crossbeam::channel when crossbeam_channel feature is enabled, otherwise use std::sync::mpsc 基于 features 的 channel 类型定义 启用 crossbeam_channel feature 时使用 crossbeam::channel,否则使用 std::sync::mpsc The receiving side of a channel.
Sender
Channel type definition based on features Use crossbeam::channel when crossbeam_channel feature is enabled, otherwise use std::sync::mpsc 基于 features 的 channel 类型定义 启用 crossbeam_channel feature 时使用 crossbeam::channel,否则使用 std::sync::mpsc The sending side of a channel.
TaskExecutor
Unified thread pool executor, supports switching channel implementation via features 统一的线程池执行器,支持通过 features 切换 channel 实现

Enums§

TryRecvError
Channel type definition based on features Use crossbeam::channel when crossbeam_channel feature is enabled, otherwise use std::sync::mpsc 基于 features 的 channel 类型定义 启用 crossbeam_channel feature 时使用 crossbeam::channel,否则使用 std::sync::mpsc An error returned from the try_recv method.

Functions§

bounded
Channel type definition based on features Use crossbeam::channel when crossbeam_channel feature is enabled, otherwise use std::sync::mpsc 基于 features 的 channel 类型定义 启用 crossbeam_channel feature 时使用 crossbeam::channel,否则使用 std::sync::mpsc Creates a channel of bounded capacity.
unbounded
Channel type definition based on features Use crossbeam::channel when crossbeam_channel feature is enabled, otherwise use std::sync::mpsc 基于 features 的 channel 类型定义 启用 crossbeam_channel feature 时使用 crossbeam::channel,否则使用 std::sync::mpsc Creates a channel of unbounded capacity.