You aren't supposed to use the Task
constructor in async
methods. Usually, you just want to pass the CancellationToken
on, like this:
public async Task MethodAsync(CancellationToken token)
{
await Method01Async(token);
await Method02Async(token);
}