Skip to content
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

Making release() and time() async #170

Merged
merged 3 commits into from
Aug 26, 2020

Conversation

cdeler
Copy link
Member

@cdeler cdeler commented Aug 25, 2020

In #169 and #168 you can find pretty the same changes:
AsyncBackend::time , AsyncSemaphore::release and AsyncLock::release have been made async.

I extracted these changes into the separated PR to make the changeset be discussed here.

@cdeler cdeler mentioned this pull request Aug 25, 2020
@cdeler cdeler changed the title Making release and time async Making release() and time() async Aug 25, 2020
Copy link
Member

@tomchristie tomchristie left a comment

Choose a reason for hiding this comment

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

Yup, I think this'll be fairly uncontroversial.

Wouldn't mind a second review over it, but otherwise I'm good with this.

Note to all: We need this because curio has different expectations (for perfectly decent reasons) about which methods should/shouldn't expose an async interface. Given that this async interface can still call into a sync implementation for trio and asyncio, but that the converse would not be true, we're not really losing anything by adopting curio's constraints in our own internal backend API here.

Copy link
Member

@florimondmanca florimondmanca left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!

@tomchristie tomchristie merged commit a43a4fc into encode:master Aug 26, 2020
@cdeler cdeler deleted the making-release-and-time-async branch August 26, 2020 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants