async-rs / async-rs/async-std

Book: explain fuse()

Open
#654 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
4.1k
Forks
339
PR merge metrics
No merged PRs in 30d

Description

Section [Handling Disconnections](https://book.async.rs/tutorial/handling_disconnection.html#handling-disconnections) uses `fuse()` without explanation. I understand that `select!` in a `loop` can cause complete future to be polled again, thus the reason to `fuse()` futures before the loop. But why are we fusing result of `next()`?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.