Table of Contents

Method MatchAsyncVoid

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

MatchAsyncVoid(Func<object?, Task>, Func<object?, Task>, Func<object?, Task>, Func<object?, Task>, Func<object?, Task>, Func<object?, Task>)

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

Task MatchAsyncVoid(Func<object?, Task> onFirst, Func<object?, Task> onSecond, Func<object?, Task> onThird, Func<object?, Task> onFourth, Func<object?, Task> onFifth, Func<object?, Task> onSixth)

Parameters

onFirst Func<object, Task>

Run with the value when the first case is held.

onSecond Func<object, Task>

Run with the value when the second case is held.

onThird Func<object, Task>

Run with the value when the third case is held.

onFourth Func<object, Task>

Run with the value when the fourth case is held.

onFifth Func<object, Task>

Run with the value when the fifth case is held.

onSixth Func<object, Task>

Run with the value when the sixth case is held.

Returns

Task

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