UniTaskCancellationExtensions Class
Namespace: Cysharp.Threading.Tasks
Assembly: cs.temp.dll.dll
public static class UniTaskCancellationExtensions
Inheritance
System.Object → UniTaskCancellationExtensionsMembers
Methods
Name | Description |
---|---|
GetCancellationTokenOnDestroy(Component) | This CancellationToken is canceled when the MonoBehaviour will be destroyed. |
GetCancellationTokenOnDestroy(GameObject) | This CancellationToken is canceled when the MonoBehaviour will be destroyed. |
Methods
GetCancellationTokenOnDestroy(Component)
This CancellationToken is canceled when the MonoBehaviour will be destroyed.
public static CancellationToken GetCancellationTokenOnDestroy(this Component component)
Parameters
component
Component
Returns
- CancellationToken
GetCancellationTokenOnDestroy(GameObject)
This CancellationToken is canceled when the MonoBehaviour will be destroyed.
public static CancellationToken GetCancellationTokenOnDestroy(this GameObject gameObject)
Parameters
gameObject
GameObject
Returns
- CancellationToken