Module future

Source
Available on crate feature async only.
Expand description

Future and stream utilities.

This module provides future and stream combinators that are missing from the futures crate.

Structs§

DevNull
A sink that consumes its input and sends it nowhere.
Enqueue
Future for the enqueue method.
OreCatchUnwind
The future returned by OreFutureExt::ore_catch_unwind.
SpawnIfCanceled
The future returned by OreFutureExt::spawn_if_canceled.

Enums§

InTask
Whether or not to run the future in run_in_task_if in a task.
TimeoutError
The error returned by timeout and timeout_at.

Traits§

OreFutureExt
Extension methods for futures.
OreSinkExt
Extension methods for sinks.
OreStreamExt
Extension methods for streams.

Functions§

dev_null
Constructs a sink that consumes its input and sends it nowhere.
timeout
Applies a maximum duration to a Result-returning future.
timeout_at
Applies a deadline to a Result-returning future.