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

Low-level API ( AsyncBackend ): Added create_fair_lock() method #348

Merged
merged 7 commits into from
Sep 15, 2024

Conversation

francis-clairicia
Copy link
Owner

What's changed

  • Added AsyncBackend.create_fair_lock()
    • There is a library-agnostic default implementation that uses Event objects.
  • The fair Locks are used when sending data over a socket:
    • Clients:
      • AsyncTCPNetworkClient.send_packet()
      • AsyncUDPNetworkClient.send_packet()
    • Servers:
      • AsyncStreamClient.send_packet()

Miscellaneous

  • AsyncDatagramServer (trio backend): Fixed potential crash when calling concurrently send_to and socket.sendto() would block.

@francis-clairicia francis-clairicia added enhancement New feature or request topic-async Relative to asynchronous API labels Sep 15, 2024
@francis-clairicia francis-clairicia self-assigned this Sep 15, 2024
Copy link

codecov bot commented Sep 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (ff8b8a7) to head (83c0a74).
Report is 51 commits behind head on main.

Additional details and impacted files
Flag Coverage Δ
OS-Linux 99.88% <100.00%> (+<0.01%) ⬆️
OS-Windows 99.76% <100.00%> (+<0.01%) ⬆️
OS-macOS 99.88% <100.00%> (+<0.01%) ⬆️
Py-3.11 99.89% <100.00%> (+<0.01%) ⬆️
Py-3.12 99.92% <100.00%> (+<0.01%) ⬆️
test-functional 82.90% <97.89%> (+0.14%) ⬆️
test-unit 89.21% <56.84%> (-0.31%) ⬇️

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

@francis-clairicia francis-clairicia merged commit b1f4522 into main Sep 15, 2024
15 checks passed
@francis-clairicia francis-clairicia deleted the feature/async-backend-api/fair-lock branch September 15, 2024 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request topic-async Relative to asynchronous API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant