futures-concurrency-dynamic
A thin wrapper around futures_util::stream::SelectAll with ergonomic improvements.
Overview
DynamicMerge<T> is essentially a type alias for SelectAll<Pin<Box<dyn Stream<Item = T> + Send>>> with convenience methods that handle the boxing internally. If you're familiar with SelectAll, you already know how to use this.
Handle-based API
When you need separate mutable access:
use dynamic_merge_with_handle;
use ;
async
API
DynamicMerge::new()- Create a new mergepush(stream)- Add a streamlen()/is_empty()- Query active streamsclear()- Remove all streamsdynamic_merge_with_handle()- Get separate handle and stream
License
MIT OR Apache-2.0