Table of Contents

Method MatchSomeAsync

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

MatchSomeAsync(Func<object?, Task>)

Runs an asynchronous action with the contained value when there is one, and otherwise does nothing.

Task MatchSomeAsync(Func<object?, Task> onSome)

Parameters

onSome Func<object, Task>

Run with the contained value when there is one.

Returns

Task

A task that completes at the end of the action, or a completed task if no value is there.