Method MatchNoneAsync
- Namespace
- SodaFlow.Functional
- Assembly
- SodaFlow.Functional.dll
MatchNoneAsync(Func<Task>)
Runs an asynchronous action when there is no value, and otherwise does nothing.
public Task MatchNoneAsync(Func<Task> onNone)
Parameters
Returns
- Task
A task that completes at the end of the action, or a completed task if a value is there.