Method MatchAsyncVoid
- Namespace
- SodaFlow.Functional
- Assembly
- SodaFlow.Functional.dll
MatchAsyncVoid(Func<T1, Task>, Func<T2, Task>, Func<T3, Task>, Func<T4, Task>, Func<T5, Task>)
Runs one of the five asynchronous actions depending on which case is held.
public Task MatchAsyncVoid(Func<T1, Task> onFirst, Func<T2, Task> onSecond, Func<T3, Task> onThird, Func<T4, Task> onFourth, Func<T5, Task> onFifth)
Parameters
onFirstFunc<T1, Task>Run with the value when the first case is held.
onSecondFunc<T2, Task>Run with the value when the second case is held.
onThirdFunc<T3, Task>Run with the value when the third case is held.
onFourthFunc<T4, Task>Run with the value when the fourth case is held.
onFifthFunc<T5, Task>Run with the value when the fifth case is held.
Returns
- Task
A task that completes at the end of the selected action.