Conversion
Provides task result conversion methods.
Allows to convert Task<T> of unknown result type into dynamically
typed task which result can be obtained as Object
or any other data type using dynamic approach.
Converts one type of task into another.
public static Task<TOutput> Convert<TInput, TOutput>(this Task<TInput> task, Converter<TInput, TOutput> converter)
Converts one type of task into another.
public static Task<TOutput> Convert<TInput, TOutput>(this Task<TInput> task, Converter<TInput, Task<TOutput>> converter)
Converts one type of task into another.
public static SuspendedExceptionTaskAwaitable SuspendException(this Task task, Predicate<Exception> filter = null)
Suspends the exception that can be raised by the task.
public static SuspendedExceptionTaskAwaitable SuspendException(this ValueTask task, Predicate<Exception> filter = null)
Suspends the exception that can be raised by the task.
public static SuspendedExceptionTaskAwaitable<TArg> SuspendException<TArg>(this Task task, TArg arg, Func<Exception, TArg, bool> filter)
Suspends the exception that can be raised by the task.
public static SuspendedExceptionTaskAwaitable<TArg> SuspendException<TArg>(this ValueTask task, TArg arg, Func<Exception, TArg, bool> filter)
Suspends the exception that can be raised by the task.
Converts value type into nullable value type.