Converts this task to an instance of Deferred. If task is cancelled then resulting deferred will be cancelled as well. However, the opposite is not true: if the deferred is cancelled, the Task will not be cancelled. For bi-directional cancellation, an overload that accepts CancellationTokenSource can be used.
Awaits the completion of the task without blocking a thread.
Awaits the completion of the task that is linked to the given CancellationTokenSource to control cancellation.