Table of Contents

Method MatchAsyncVoid

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

MatchAsyncVoid(Func<T1, Task>, Func<T2, Task>, Func<T3, Task>, Func<T4, Task>, Func<T5, Task>, Func<T6, Task>, Func<T7, Task>, Func<T8, Task>)

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

public Task MatchAsyncVoid(Func<T1, Task> onFirst, Func<T2, Task> onSecond, Func<T3, Task> onThird, Func<T4, Task> onFourth, Func<T5, Task> onFifth, Func<T6, Task> onSixth, Func<T7, Task> onSeventh, Func<T8, Task> onEighth)

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.

onFourth Func<T4, Task>

Run with the value when the fourth case is held.

onFifth Func<T5, Task>

Run with the value when the fifth case is held.

onSixth Func<T6, Task>

Run with the value when the sixth case is held.

onSeventh Func<T7, Task>

Run with the value when the seventh case is held.

onEighth Func<T8, Task>

Run with the value when the eighth case is held.

Returns

Task

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