Skip to content

bpo-24755: Document asyncio.wrap_future #603

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 9, 2017
Merged

Conversation

adisbladis
Copy link
Contributor

No description provided.

@the-knights-who-say-ni
Copy link

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately our records indicate you have not signed the CLA. For legal reasons we need you to sign this before we can look at your contribution. Please follow these steps to rectify the issue:

  1. Sign the PSF contributor agreement. The "bugs.python.org username" requested by the form is the "Login name" field in "Your Details" at b.p.o
  2. Wait at least one US business day and then check the "Contributor form received entry under "Your Details" on bugs.python.org to see if your account has been marked as having signed the CLA (the delay is due to a person having to manually check your signed CLA)
  3. Reply here saying you have completed the above steps

Thanks again to your contribution and we look forward to looking at it!

@mention-bot
Copy link

@adisbladis, thanks for your PR! By analyzing the history of the files in this pull request, we identified @1st1, @asvetlov, @bitdancer, @berkerpeksag and @eliben to be potential reviewers.

@@ -540,6 +540,13 @@ Task functions

.. deprecated:: 3.4.4

.. function:: wrap_future(future, \*, loop=None)

Wrap a :class:`concurrent.futures.Future` object in a :class:`Future` object
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing periods at the end of sentences. Make sure that max line length is 72.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the input. I have made a new commit and rebased.

@adisbladis
Copy link
Contributor Author

CLA has been signed.

Wrap a :class:`concurrent.futures.Future` object in a
:class:`Future` object.

When the original :class:`concurrent.futures.Future` is completed
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sentence sounds odd to me.
What about...

The wrapping of :class:`Future` ends when the original :class:`concurrent.futures.Future` is completed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The wrapping doesn't end, though. It's that completion of the wrapped future triggers completion of the wrapper. Which is what I would expect from a wrapper...and I would likewise expect that result on the wrapper will return the result of the wrapped future, so I'm not even sure this sentence is a good idea.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright. Perhaps just remove this sentence then.
@adisbladis Could you remove the sentence? Thanks.

Wrap a :class:`concurrent.futures.Future` object in a
:class:`Future` object.

When the original :class:`concurrent.futures.Future` is completed
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright. Perhaps just remove this sentence then.
@adisbladis Could you remove the sentence? Thanks.

@Mariatta Mariatta dismissed their stale review June 9, 2017 06:17

I made the suggested change

@Mariatta Mariatta merged commit 824f687 into python:master Jun 9, 2017
Mariatta pushed a commit to Mariatta/cpython that referenced this pull request Jun 9, 2017
Mariatta pushed a commit to Mariatta/cpython that referenced this pull request Jun 9, 2017
Mariatta added a commit that referenced this pull request Jun 9, 2017
Mariatta added a commit that referenced this pull request Jun 9, 2017
@Mariatta
Copy link
Member

Mariatta commented Jun 9, 2017

Thanks for the PR @adisbladis 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants