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>, Func<T6, Task>, Func<T7, Task>, Func<T8, Task>)
Runs one of the eight 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, Func<T6, Task> onSixth, Func<T7, Task> onSeventh, Func<T8, Task> onEighth)
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.
onSixthFunc<T6, Task>Run with the value when the sixth case is held.
onSeventhFunc<T7, Task>Run with the value when the seventh case is held.
onEighthFunc<T8, Task>Run with the value when the eighth case is held.
Returns
- Task
A task that completes at the end of the selected action.