Class ThreadSafeReference.Set<T>
A reference to a ISet<T> intended to be passed between threads.
To resolve a thread-safe reference on a target Realm on a different thread, pass it to ResolveReference<T>(Set<T>).Inherited Members
Namespace: Realms
Assembly: Realm.dll
Syntax
public class ThreadSafeReference.Set<T> : ThreadSafeReference
Type Parameters
Name | Description |
---|---|
T | The type of the objects contained in the set. |
Remarks
A ThreadSafeReference object must be resolved at most once.
Failing to resolve a ThreadSafeReference will result in the source version of the Realm being pinned until the reference is deallocated. Prefer short-lived ThreadSafeReferences as the data for the version of the source Realm will be retained until all references have been resolved or deallocated.