We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Those two are not identical:
import trio async def main(): c = trio.Semaphore(10) async with c: print('one in') async with c: print('two in') trio.run(main)
one in two in
but:
import trio async def main(): c = trio.CapacityLimiter(10) async with c: print('one in') async with c: print('two in') trio.run(main)
one in RuntimeError: this borrower is already holding one of this CapacityLimiter's tokens
This means that I cannot open two connections in the same task https://github.com/Fuyukai/riopg.
The text was updated successfully, but these errors were encountered:
Ooo! Nice lib. Didn't realise F was making this. Neato.
Switched and updated.
Sorry, something went wrong.
No branches or pull requests
Those two are not identical:
but:
This means that I cannot open two connections in the same task https://github.com/Fuyukai/riopg.
The text was updated successfully, but these errors were encountered: