MatchAsync Method
Definition
- Namespace
- Tyne
- Assembly
- Tyne.Core.dll
Methods
| Edit this page View SourceMatchAsync<T>(Option<T>, Func<T, Task>, Func<Task>)
Declaration
public static Task MatchAsync<T>(this Option<T> option, Func<T, Task> some, Func<Task> none)
Parameters
Returns
TaskType Parameters
T
MatchAsync<T, TResult>(Option<T>, Func<T, Task<TResult>>, Func<Task<TResult>>)
Declaration
public static Task<TResult> MatchAsync<T, TResult>(this Option<T> option, Func<T, Task<TResult>> some, Func<Task<TResult>> none)
Parameters
Returns
Task<TResult>Type Parameters
T
TResult