Skip to content

client_runner: yield to the event loop#83

Merged
tsubakiky merged 1 commit intomainfrom
client-runner-event-loop
May 14, 2025
Merged

client_runner: yield to the event loop#83
tsubakiky merged 1 commit intomainfrom
client-runner-event-loop

Conversation

@tsubakiky
Copy link
Copy Markdown
Collaborator

@tsubakiky tsubakiky commented May 14, 2025

This pull request makes minor adjustments to the conformance/client_runner.py file by removing unnecessary debug logging and improving the handling of asynchronous tasks in the read_requests function.

Code cleanup:

  • Removed the debug logging block that checked for the --debug argument, as it was unused and unnecessary. ([conformance/client_runner.pyL418-L419](https://github.com/gaudiy/connect-python/pull/83/files#diff-f622a5ba36418f0d9feaef268242d164a070e854612c0a4705f6260e7e5e722bL418-L419))

Asynchronous task handling:

  • Added a await asyncio.sleep(0) statement in the read_requests function to yield control back to the event loop, ensuring better task scheduling and responsiveness. ([conformance/client_runner.pyR436](https://github.com/gaudiy/connect-python/pull/83/files#diff-f622a5ba36418f0d9feaef268242d164a070e854612c0a4705f6260e7e5e722bR436))

@tsubakiky tsubakiky merged commit 32ed2e3 into main May 14, 2025
@tsubakiky tsubakiky deleted the client-runner-event-loop branch May 14, 2025 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant