Table of Contents

Method MatchAsyncVoid

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

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

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

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

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.

onThird Func<T3, Task>

Run with the value when the third case is held.

Returns

Task

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