Skip to content

Switch from using an asyncio.Event to asyncio.Condition for waiting#482

Merged
bdraco merged 1 commit into
python-zeroconf:masterfrom
bdraco:async_switch_to_condition
Jun 6, 2021
Merged

Switch from using an asyncio.Event to asyncio.Condition for waiting#482
bdraco merged 1 commit into
python-zeroconf:masterfrom
bdraco:async_switch_to_condition

Conversation

@bdraco

@bdraco bdraco commented Jun 6, 2021

Copy link
Copy Markdown
Member

Fixes #479

- Using a asyncio.Condition permits fixing a race condition
  in processing handlers similar to the sync version in python-zeroconf#477
@codecov-commenter

codecov-commenter commented Jun 6, 2021

Copy link
Copy Markdown

Codecov Report

Merging #482 (aeeb8ab) into master (b853413) will increase coverage by 0.33%.
The diff coverage is 98.24%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #482      +/-   ##
==========================================
+ Coverage   95.62%   95.96%   +0.33%     
==========================================
  Files           4        4              
  Lines        3338     3369      +31     
  Branches      402      407       +5     
==========================================
+ Hits         3192     3233      +41     
+ Misses         89       80       -9     
+ Partials       57       56       -1     
Impacted Files Coverage Δ
zeroconf/asyncio.py 98.32% <97.29%> (-0.41%) ⬇️
zeroconf/__init__.py 92.73% <100.00%> (+0.71%) ⬆️
zeroconf/test.py 98.88% <100.00%> (+<0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 849e9bc...aeeb8ab. Read the comment docs.

Comment thread zeroconf/asyncio.py
@bdraco bdraco merged commit 393910b into python-zeroconf:master Jun 6, 2021
@bdraco bdraco deleted the async_switch_to_condition branch June 6, 2021 23:30
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.

Before Python 3.7, async.wait_for can throw concurrent.futures.TimeoutError

2 participants