Method MatchAsyncVoid
- Namespace
- SodaFlow.Functional
- Assembly
- SodaFlow.Functional.dll
MatchAsyncVoid(Func<object?, Task>, Func<Task>)
Runs one asynchronous action when there is a value, and a different one when there is none.
Task MatchAsyncVoid(Func<object?, Task> onSome, Func<Task> onNone)
Parameters
onSomeFunc<object, Task>Run with the contained value when there is one.
onNoneFunc<Task>Run when there is no value.
Returns
- Task
A task that completes at the end of the selected action.