Thread safe copy of RLMRealm

28 views
Skip to first unread message

Zsombor Papp

unread,
Feb 10, 2016, 10:27:16 AM2/10/16
to Realm
I found myself needing thread safe copies of RLMRealm objects and I achieved this as follows (it's an ObjC+Swift project):

try! RLMRealm(configuration: realm.configuration)


Is this safe?

Would it be possible to add a 'threadSafeCopy' function to RLMRealm so that it's obvious how to get a thread safe copy? And maybe make it not throw and return a non-optional..?

Thanks,
Zsombor

Reply all
Reply to author
Forward
0 new messages