Class ResourceLifetime
- Namespace
- MackySoft.Navigathena
- Assembly
- MackySoft.Navigathena.dll
Lets an external owner stop all registered users before destroying its resources.
public sealed class ResourceLifetime
- Inheritance
-
ResourceLifetime
- Inherited Members
Methods
EndAsync()
Closes new borrowing and waits for users to stop. Does not destroy externally owned values. Concurrent calls join the same attempt, including a failed attempt.
public ValueTask EndAsync()
Returns
Reference<T>(T)
public ResourceReference<T> Reference<T>(T resource) where T : class
Parameters
resourceT
Returns
Type Parameters
T