Table of Contents

Method MatchAsyncVoid

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

MatchAsyncVoid(Func<T, Task>, Func<Task>)

Runs one asynchronous action when there is a value, and a different one when there is none.

public Task MatchAsyncVoid(Func<T, Task> onSome, Func<Task> onNone)

Parameters

onSome Func<T, Task>

Run with the contained value when there is one.

onNone Func<Task>

Run when there is no value.

Returns

Task

A task that completes at the end of the selected action.