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

Prevent forwarding viewConnectable inputs after dispose #191

Merged
merged 2 commits into from
Apr 26, 2022

Conversation

kmcbride
Copy link
Collaborator

Something overlooked in #190 is that the connection disposal was previously executed only after all input forwarding occurred because it was scheduled last.

There needed to be one additional state check in order for the new behavior to also honor the connection contract of not forwarding inputs after dispose. I've added this check and restored a small amount of pre-#190 functionality.

I tested this fix with features that had a number of tests failing as a result of trying to pull in the changes from #190 and it looks to be passing now.

@codecov
Copy link

codecov bot commented Apr 25, 2022

Codecov Report

Merging #191 (b3c8bb3) into master (80c0e10) will increase coverage by 0.17%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #191      +/-   ##
==========================================
+ Coverage   94.97%   95.15%   +0.17%     
==========================================
  Files          42       42              
  Lines        1414     1425      +11     
==========================================
+ Hits         1343     1356      +13     
+ Misses         71       69       -2     
Flag Coverage Δ
macspm 95.15% <100.00%> (+0.17%) ⬆️

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

Impacted Files Coverage Δ
...iusCore/Source/AsyncDispatchQueueConnectable.swift 93.33% <100.00%> (+8.71%) ⬆️
MobiusCore/Source/Lock.swift 100.00% <100.00%> (ø)

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 80c0e10...b3c8bb3. Read the comment docs.

rastersize
rastersize previously approved these changes Apr 25, 2022
@kmcbride kmcbride merged commit 9c053f9 into spotify:master Apr 26, 2022
@kmcbride kmcbride deleted the sync-dispose-fix branch April 26, 2022 15:29
kmcbride added a commit to kmcbride/Mobius.swift that referenced this pull request Apr 30, 2022
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.

None yet

2 participants