Skip to content

feat: Allow overriding the coroutine runner in start_server()#99

Merged
achimnol merged 2 commits intomainfrom
feat/server-runner-customization
Oct 20, 2025
Merged

feat: Allow overriding the coroutine runner in start_server()#99
achimnol merged 2 commits intomainfrom
feat/server-runner-customization

Conversation

@achimnol
Copy link
Copy Markdown
Owner

In Python 3.16, event loop policies will be depreacted.

Let's allow setting the runner function as an optional kwarg in aiotools.start_server() so that our users could use it to set as uvloop.run for forward compatibility.

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 20, 2025

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 80.15%. Comparing base (11c8347) to head (c091099).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/aiotools/server.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #99      +/-   ##
==========================================
+ Coverage   79.94%   80.15%   +0.20%     
==========================================
  Files          21       21              
  Lines        1456     1456              
==========================================
+ Hits         1164     1167       +3     
+ Misses        292      289       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@achimnol achimnol merged commit 08bcac4 into main Oct 20, 2025
22 checks passed
@achimnol achimnol deleted the feat/server-runner-customization branch October 20, 2025 07:22
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