Skip to content

Clarify Future.cancel() behavior - #154949

Open
chyin6 wants to merge 1 commit into
python:mainfrom
chyin6:personal/chyin/futuredoc
Open

Clarify Future.cancel() behavior#154949
chyin6 wants to merge 1 commit into
python:mainfrom
chyin6:personal/chyin/futuredoc

Conversation

@chyin6

@chyin6 chyin6 commented Jul 30, 2026

Copy link
Copy Markdown

The previous wording could be read as implying that a running call might still be cancellable. This change makes it explicit that Future.cancel() returns False once the call is already running or has finished.

This is a documentation-only change; no behavior is changed.

Discussed at:
https://discuss.python.org/t/docs-improvement-suggestion-an-ambiguity-in-the-future-cancel-for-non-native-english-speakers/108328

@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news labels Jul 30, 2026
@python-cla-bot

python-cla-bot Bot commented Jul 30, 2026

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33839267 | 📁 Comparing 76d3ab1 against main (a147366)

  🔍 Preview build  

1 file changed
± library/concurrent.futures.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant