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

Improved task management in the backend API #129

Merged
merged 11 commits into from
Sep 24, 2023
Merged

Conversation

francis-clairicia
Copy link
Owner

What's changed

  • AsyncBackend: Removed get_local_address() and get_remote_address() from socket adapter
  • easynetwork_asyncio: Fixed DatagramEndpoint.recvfrom() when the transport is closed.
  • easynetwork_asyncio: Improved transport monkeypatch
  • Added AsyncExecutor.map() iterator
  • easynetwork_asyncio: Improved task management methods
  • AsyncBackend: ThreadsPortal objects are now used as context managers
  • AsyncBackend: Removed Runner interface (added in PR General improvement on servers #107)
  • Renamed AsyncioBackend to AsyncIOBackend
  • Removed SingleTaskRunner and backend.spawn_task() to add CancelScope (revert of PRs Added backend.spawn_task() method #100 and Task.join_or_cancel() is reserved to system tasks #118)

@francis-clairicia francis-clairicia added bug Something isn't working topic-async Relative to asynchronous API labels Sep 24, 2023
@francis-clairicia francis-clairicia self-assigned this Sep 24, 2023
@codecov
Copy link

codecov bot commented Sep 24, 2023

Codecov Report

Merging #129 (8fa6ec2) into main (f31375c) will not change coverage.
The diff coverage is 100.00%.

Flag Coverage Δ
OS-Linux 88.09% <96.99%> (+0.26%) ⬆️
OS-Windows 87.95% <96.99%> (+0.22%) ⬆️
OS-macOS 88.07% <96.99%> (+0.22%) ⬆️
Py-3.11 99.89% <100.00%> (-0.01%) ⬇️
test-functional 88.28% <97.18%> (+0.26%) ⬆️
test-unit 77.16% <53.19%> (-1.84%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@francis-clairicia francis-clairicia merged commit c58962b into main Sep 24, 2023
11 checks passed
@francis-clairicia francis-clairicia deleted the fix/async/backend branch September 24, 2023 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working topic-async Relative to asynchronous API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant