I have an async method. I do not have access to the Frame.Execute() code method.
Issue: myTask would not cancel until the Frame.Execute complete execution.
I need to immediately cancel Frame.Execute() and myTask when a cancellation requested.
private async Task myTask(CancellationToken tkn)
{
tkn.ThrowIfCancellationRequested();
var myList= await Task.Run(()=> Frame.Execute(),tkn);
//Do other things
}