Table of Contents

MatchAsync Method

Definition

Namespace
Tyne
Assembly
Tyne.Core.dll

Methods

| Edit this page View Source

MatchAsync<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
option
Option<T>
some
Func<T, Task>
none
Func<Task>
Returns
Task
Type Parameters
T
| Edit this page View Source

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
option
Option<T>
some
Func<T, Task<TResult>>
none
Func<Task<TResult>>
Returns
Task<TResult>
Type Parameters
T
TResult