Replies: 1 comment 1 reply
-
Hi @jaredh159, some answers to your questions:
It is not, as far as we know.
We do sometimes, and haven't come across this issue. I also just turned it on for the demo we have been building in episodes and wasn't able to reproduce.
I personally doubt that.
That is a possibility. The only thing that comes to mind is if you somehow have an effect that emits or completes on the non-main thread. This is really only possible when using Combine-based effects rather than async effects, so if you have any of those that would be where to look.
That could help, or if you are able to reproduce the problem in any of our demo apps. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
i have some code in a reducer similar to this example from a recent episode:
where a reducer uses
.send()
to immediately feed an effect back into the system. i always develop with thread sanitizer enabled, and i started getting fairly consistent (maybe 80% of the time) access race warnings about multiple threads accessing the view stores send functionality.when i changed the code to this:
then the tsan warnings went away.
now... my app is really complex with a bunch of hairy entitlements, and it's not open source, so it's difficult to show you guys a minimal repro. i'm willing to try to isolate it and reproduce it, but i thought before i went through the effort to do that i would ask a couple things:
thanks so much!
EDIT: oh, forgot to mention, i'm running the very latest commit of the
prerelease/1.0
branch, fwiwBeta Was this translation helpful? Give feedback.
All reactions