Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

What the the practice for cleaning up cancelled CancellationTokenSource objects? #602

Unanswered
aaronatweta asked this question in Q&A
Discussion options

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.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /