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