-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
Deadlock when dispatching from store/feature events #474
Milestone
Comments
Hi Do you know if/when this issue will be fixed and if you have found a temporary solution to it? Many thanks! |
I have a potential solution but need to stress test it because threading. What version of .net are you using? It looks like I might only be supporting 6..8 |
Im on Net8 |
dmitry-pavlov
added a commit
to dmitry-pavlov/Fluxor
that referenced
this issue
Mar 22, 2024
* Remove support for obsolete versions of .NET (mrpmorris#385) * Change IDisposable to IAsyncDisposable (Fixes mrpmorris#324) * ReduxDevTools should not call UseRouting (Fixes mrpmorris#360) (mrpmorris#388) * Remove UseRouting from UseReduceDevTools * Allow action filtering on redux dev tools (fixes mrpmorris#383) (mrpmorris#389) * Support action filtering in Redux Dev Tools * Add unit tests * Remove Newtonsoft.Json (Fixes mrpmorris#386) (mrpmorris#392) * Remove dependency on Newtonsoft.Json * Remove support for obsolete versions of .NET (mrpmorris#385) * Change IDisposable to IAsyncDisposable (Fixes mrpmorris#324) * ReduxDevTools should not call UseRouting (Fixes mrpmorris#360) (mrpmorris#388) * Remove UseRouting from UseReduceDevTools * Allow action filtering on redux dev tools (fixes mrpmorris#383) (mrpmorris#389) * Support action filtering in Redux Dev Tools * Add unit tests * Remove Newtonsoft.Json (Fixes mrpmorris#386) (mrpmorris#392) * Remove dependency on Newtonsoft.Json * Allow action filtering on redux dev tools (fixes mrpmorris#383) (mrpmorris#389) * Support action filtering in Redux Dev Tools * Add unit tests * Bump Swashbuckle.AspNetCore.SwaggerUI Bumps [Swashbuckle.AspNetCore.SwaggerUI](https://github.com/domaindrivendev/Swashbuckle.AspNetCore) from 6.3.0 to 6.4.0. - [Release notes](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/releases) - [Commits](domaindrivendev/Swashbuckle.AspNetCore@v6.3.0...v6.4.0) --- updated-dependencies: - dependency-name: Swashbuckle.AspNetCore.SwaggerUI dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Deadlock mrpmorris#474 (mrpmorris#476) * Add lock conflict test * Alternate locking approach * Update .net versions * Eliminate deadlock when executing an action from IDispatcher.ActionDispatched on a different thread mrpmorris#474 (mrpmorris#477) * Update SourceLink * Fix flaky tests in ThrottledInvoker * Execute feature callbacks outside lock() * Have ThrottledInvoker re-enter if the timer executes too soon. * Have test ensure the execution window is within (ThrottleWindowMs) and (ThrottleWindowMs* 2) * Change parameter name from action to throttledAction in test. * Don't test for too long, only too short. * Task.Yield to ensure fire-and-forget action logging has time to complete * Update throttling tests * Update throttling test comments * Rewrite ThrottledInvoker to not use Timers * Source formatting * Make throttled invoker disposable * Call ThrottledInvoker.Dispose from Blazor libraries * ThrottledInvoke.Dispose tests * Change style of unit test * Remove race condition from test * Change test timings * Spelling error * Use IAsyncLifetime instead of using Task.Wait() * Code tidy * Remove NCrunch file * Ignore *ncrunch* * Use TimeSpan instead of int MS * 6.0-Beta1 * Fix errors in tests detected by NCrunch. * Unit tests for navigation fragments * Rename UrlComparer.SameAs to UrlComparer.AreEqual * Delete TestNavigationManager * Add a note to Releases.md about mrpmorris#455 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Peter Morris <mrpmorris@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If the handlers on Dispatcher.ActionDispatched or Feature.StateChanged events dispatch another action on a different thread then a deadlock occurs.
The text was updated successfully, but these errors were encountered: