Add support for optional channels in Select
#12
Labels
part:synchronization
Affects the synchronization of multiple sources (`select`, `merge`)
type:enhancement
New feature or enhancement visitble to users
Milestone
What's needed?
There might be cases when one wants to do a
Select
loop with some channels that are optional and if they are not present the handling of those channels will just not be used. Right now there is no trivial way to do this.Proposed solution
Create a
Select.with_optional()
method like (maybe incomplete and untested):With the intended use:
Use cases
Yet to be seen
Alternatives and workarounds
Select
and never call send to the sender of the channel.Additional context
No response
The text was updated successfully, but these errors were encountered: