Method MatchAsyncVoid
- Namespace
- SodaFlow.Functional
- Assembly
- SodaFlow.Functional.dll
MatchAsyncVoid(Func<object?, Task>, Func<object?, Task>)
Runs one of the two asynchronous actions depending on which case is held.
Task MatchAsyncVoid(Func<object?, Task> onFirst, Func<object?, Task> onSecond)
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.
Returns
- Task
A task that completes at the end of the selected action.