You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(iroh): Remove CancellationToken from Endpoint (#3101)
## Description
The internal CancellationToke was used to know by other parts of the
code when the endpoint is shut down. But those bits of code already
have mechanisms to do so. This bit of API makes is a bit of extra
complexity that is not needed.
## Breaking Changes
None, this is internal.
## Notes & open questions
Closes#3096.
Closes#3098 (replaces).
Maybe not directly but now there's an example of how to write an
accept loop without having to rely on the CancellationToken.
## Change checklist
- [x] Self-review.
- [x] Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.
- [x] Tests if relevant.
- [x] All breaking changes documented.
0 commit comments