Open TylerBloom opened 1 year ago
At first glance, this seems reasonable to me.
I was recently revisiting this idea. While the retain
method that I proposed could (and maybe should) be implemented, a better solution to the problem that I described is a SelectAll
for FusedStream
s. This would function similarly to the SelectAll
futures in that a stream is dropped as soon as it knows that it is finished.
Currently, there is no ergonomic way to manage the internal streams in a
SelectAll
. In particular, there is no way to remove streams with a significant workaround. It would be nice to have a method such asretain
that could be used to remove streams that are owned by theSelectAll
. This would be particularly helpful for long-runningSelectAll
streams whose constituent streams live for much less time.