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

Fix deadlock in transform async #405

Merged
merged 2 commits into from
Sep 15, 2020
Merged

Fix deadlock in transform async #405

merged 2 commits into from
Sep 15, 2020

Conversation

RolandPheasant
Copy link
Collaborator

@RolandPheasant RolandPheasant commented Sep 14, 2020

What kind of change does this PR introduce?

Fixes an issue where a deadlock can occur in the transform async operator

What is the current behavior?

See #157

What is the new behavior?

No deadlock hopefully

What might this PR break?

Now ignores parallelisation option. I will come back to this later as I doubt anyone will be effected.,

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Hell yeah

Other information:

None

@codecov
Copy link

codecov bot commented Sep 15, 2020

Codecov Report

Merging #405 into main will increase coverage by 7.31%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #405      +/-   ##
==========================================
+ Coverage   62.93%   70.25%   +7.31%     
==========================================
  Files         216      213       -3     
  Lines       11578    11342     -236     
  Branches     2142        0    -2142     
==========================================
+ Hits         7287     7968     +681     
+ Misses       3399     3374      -25     
+ Partials      892        0     -892     
Impacted Files Coverage Δ
src/DynamicData/Cache/ObservableCacheEx.cs 49.37% <ø> (+19.13%) ⬆️
src/DynamicData/Kernel/InternalEx.cs 22.58% <ø> (-8.85%) ⬇️
src/DynamicData/Cache/Internal/TransformAsync.cs 88.76% <100.00%> (+17.65%) ⬆️
src/DynamicData/Cache/Tests/ChangeSetAggregator.cs 96.29% <100.00%> (+14.81%) ⬆️
src/DynamicData/Kernel/ParallelEx.cs 0.00% <0.00%> (-77.28%) ⬇️
...rc/DynamicData/List/Linq/WithoutIndexEnumerator.cs 90.00% <0.00%> (-0.91%) ⬇️
src/DynamicData/Cache/Internal/CacheEx.cs 11.11% <0.00%> (ø)
src/DynamicData/Cache/Internal/FilterEx.cs 100.00% <0.00%> (ø)
src/DynamicData/List/SourceList.cs
src/DynamicData/EnumerableEx.cs
... and 135 more

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 6594137...4953aab. Read the comment docs.

@glennawatson glennawatson merged commit 32c9c93 into main Sep 15, 2020
@glennawatson glennawatson deleted the TransformAsyncFix branch September 15, 2020 10:07
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants