bpo-38136: Updates await_count and call_count to be different things#16192
bpo-38136: Updates await_count and call_count to be different things#16192lisroach merged 8 commits into
Conversation
|
Does this mean we have to revert the doc updated added in #15761 ? |
Sorry, something went wrong.
|
@tirkarthi yes, I can actually just remove that doc change with this PR. |
Sorry, something went wrong.
|
When you're done making the requested changes, leave the comment: |
Sorry, something went wrong.
|
Thanks @lisroach for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8. |
Sorry, something went wrong.
|
Sorry, @lisroach, I could not cleanly backport this to |
Sorry, something went wrong.
After a lot of discussion we have decided that "calls" and "awaits" should be counted as two different things.
To accomplish this I separated the call counting from the actual execution of the call, that way they are counted at two different times. For synchronous calls the increment and execute calls happen one immediately after another, but for asynchronous calls the increment count for call count happens first, and then only after
awaitis called does the call execute and increment the await counters.https://bugs.python.org/issue38136