realm-swift icon indicating copy to clipboard operation
realm-swift copied to clipboard

Add withoutNotifying support for asyncWrite / writeAsync

Open aehlke opened this issue 1 year ago • 3 comments

Problem

Background: https://github.com/realm/realm-swift/issues/6760

This was added to realm.write - would be amazing to have for asyncWrite and writeAsync

Solution

No response

Alternatives

No response

How important is this improvement for you?

Would be a major improvement

Feature would mainly be used with

Local Database only

aehlke avatar Feb 12 '24 18:02 aehlke

need too

pvtrn avatar Mar 09 '24 04:03 pvtrn

Bumping this issue as I'm running into this issue again

Added context: I had to transition away from synchronous realm writes in order to eliminate a bunch of crashing instability, and now use async exclusively (behind the same actor for writing, too) which has worked alright except now I've lost this critical functionality

aehlke avatar Jul 12 '24 00:07 aehlke

Can you give a concrete example of what the code using it looks like? The use-case which originally motivated withoutNotifying: specifically required that the write be synchronous, so my concern with exposing it on asyncWrite is that it might be something that looks like it'll work but actually just blows up when things are scheduled in a certain way. If you are doing something that'll work with the current design, exposing it should be trivial.

tgoyne avatar Jul 13 '24 19:07 tgoyne