diff options
author | 2022-05-27 19:43:50 +0200 | |
---|---|---|
committer | 2022-05-27 19:54:58 +0200 | |
commit | ecd00cf02b23ccafd4427f498507621ebb017be7 (patch) | |
tree | 1988f2ec3b0b80569407f70050ba610579ae924d /examples/tour | |
parent | 5de337f214530faab1d5fe47784afd7006c3f7f0 (diff) | |
download | iced-ecd00cf02b23ccafd4427f498507621ebb017be7.tar.gz iced-ecd00cf02b23ccafd4427f498507621ebb017be7.tar.bz2 iced-ecd00cf02b23ccafd4427f498507621ebb017be7.zip |
Fix `Subscription` cancelation when never awaiting
`StreamExt::forward` will keep polling a ready `Stream` in a loop. If the
`Stream` is always ready, the `poll` method of `Forward` effectively
blocks (see https://github.com/rust-lang/futures-rs/issues/2552).
The fix consists in manually implementing a simpler version of `Forward`.
Diffstat (limited to 'examples/tour')
0 files changed, 0 insertions, 0 deletions