yoshuawuyts / futures-concurrency

Structured concurrency operations for async Rust
https://docs.rs/futures-concurrency
Apache License 2.0
400 stars 31 forks source link

Add a `StreamSet` API #148

Closed yoshuawuyts closed 1 year ago

yoshuawuyts commented 1 year ago

Similar to FutureSet introduced in #147 we should add a StreamSet API.

yoshuawuyts commented 1 year ago

This should be slab-based, and non-lending. The way to remove arbitrary streams is by requiring people use their own borrowing scheme for their streams.

We should verify that that is possible before locking in the design. If it is then we have a stable notion of user-configurable identity, which is what we want.