Cancellation Token support for the Unity plugin
Something that would be incredibly helpful, given the Unity plugin’s heavy reliance on asynchronous tasks, is support for System.Threading.CancellationToken. Many of the user-initiated operations in my game are asynchronous in nature and can be cancelled or skipped by the user if they run for too long, so I make heavy use of Unity 2023’s async/await support and .NET's cancellation tokens to interrupt long-running HTTP requests and clean up resources. As it stands, I can check the cancellation token’s status before and after each call to the Twitch API, but if the calling method is cancelled externally during that time due the user interrupting it with a thrown OperationCanceledException, the GameTask stays running in the background, and the result is never disposed of properly when it completes, causing a memory leak.