Table of Contents

Method MatchAsyncVoid

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

MatchAsyncVoid(Func<T1, Task>, Func<T2, Task>)

Runs one of the two asynchronous actions depending on which case is held.

public Task MatchAsyncVoid(Func<T1, Task> onFirst, Func<T2, Task> onSecond)

Parameters

onFirst Func<T1, Task>

Run with the value when the first case is held.

onSecond Func<T2, Task>

Run with the value when the second case is held.

Returns

Task

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