Crate linked_futures

Source
Expand description

This crate provides the way to “link” futures into a single block, which stops executing once any of these futures complete.

Under the hood, it uses FuturesUnordered to execute multiple futures efficiently. In order to avoid boxing, custom one-of type from one-of-futures crate is generated for each link_futures block.

Macros§

impl_one_of
Macro to implement custom OneOf type.
link_futures
Link multiple futures into a single block
linked_block
Create necessary enums for later usage with link_futures

Structs§

FuturesUnordered
A set of futures which may complete in any order.

Traits§

StreamExt
An extension trait for Streams that provides a variety of convenient combinator functions.