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

Realm write race condition #6968

Open
ryan-mardiono-sal opened this issue Jan 30, 2025 · 0 comments
Open

Realm write race condition #6968

ryan-mardiono-sal opened this issue Jan 30, 2025 · 0 comments

Comments

@ryan-mardiono-sal
Copy link

Does realm handle possible conflicting attempts at multiple realm write transactions at the same time?

Of course I'm aware not to intentionally do more than 1 realm write transaction at once. But what happens in this example?:

  • Interval that writes and creates realm object every minute
  • Button to create the object

If they happen to coincide, would realm handle this? I've seen in swift some people create safeWrite function which checks for this. But it was bit outdated.

Appreciate any info on this, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant