What the the practice for cleaning up cancelled CancellationTokenSource objects? #602
Unanswered
aaronatweta
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Can someone tell me what the correct practice is for cleaning up a UniTask that has been cancelled via a CancellationTokenSource? In the UniTaskViewer panel I am seeing some dangling tasks with the "Cancelled" status so I want to know what needs to be done to make sure these things are cleaned up correctly?
I have seen exampled that have a Cancel, Dispose, New' idiom but that can't always be done if something else is cancelling the CTS such as the GetCancellationTokenOnDestroy or something that is cancelled by someone else.
Beta Was this translation helpful? Give feedback.
All reactions