Continuation
Represents various continuations.
public static Task<T> OnCanceled<T, C>(this Task<T> task, TaskScheduler scheduler = null) where C : Constant<T>
Returns constant value if underlying task is canceled.
Allows to obtain original Task in its final state after await without
throwing exception produced this task.
Allows to obtain original Task<T> in its final state after await without
throwing exception produced this task.
public static Task<T> OnFaulted<T, C>(this Task<T> task, TaskScheduler scheduler = null) where C : Constant<T>
Returns constant value if underlying task is failed.
public static Task<T> OnFaultedOrCanceled<T, C>(this Task<T> task, TaskScheduler scheduler = null) where C : Constant<T>
Returns constant value if underlying task is failed or canceled.