Interface ISharedRef<TValue>
A shared reference to a value.
Namespace: Microsoft.XboxStudios.ClientManager
Assembly: ClientManager.Abstractions.dll
Syntax
public interface ISharedRef<TValue>
Type Parameters
Name | Description |
---|---|
TValue | The type of the value to have a shared reference to. |
Properties
View SourceValue
Gets the value this shared pointer is pointing to.
Declaration
TValue Value { get; }
Property Value
Type | Description |
---|---|
TValue |
Methods
View SourceUnreserve()
Decrements the reference count and cleans up the shared value synchronously if the count reaches zero.
Declaration
void Unreserve()
UnreserveAsync()
Decrements the reference count and cleans up the shared value asynchronously if the count reaches zero.
Declaration
ValueTask UnreserveAsync()
Returns
Type | Description |
---|---|
ValueTask | A ValueTask that represents the asynchronous operation. |