]> git.feebdaed.xyz Git - 0xmirror/tokio.git/commit
future: clarify the fairness of `FutureExt` for cancellation adapters (#7512)
authorLuca Bruno <lucab@lucabruno.net>
Mon, 4 Aug 2025 13:26:11 +0000 (15:26 +0200)
committerGitHub <noreply@github.com>
Mon, 4 Aug 2025 13:26:11 +0000 (21:26 +0800)
commitef5b6af7f6b641db7a1ed1f09534bc75943bf835
tree4b975268d068352edadef254afcf11fd881c1734
parent0922aa2a0b09cf35582f15c799996c64e0b6e50a
future: clarify the fairness of `FutureExt` for cancellation adapters (#7512)

This fixes the docstrings on `FutureExt` so that the bias and fairness
notes are correct and consistent in all cases.
All cancellation-related wrappers are biased towards the completion of
the inner future, but they do initially check if the token is
already cancelled at construction time.
tokio-util/src/future.rs