Table of Contents

Struct SuppressExceptionFlattenAsyncExecutorProvider<T1, T2>

Namespace
Executables.Executors
Assembly
executables.dll

Provides suppression executor for asynchronous executors that already return Optional<T>.

public readonly ref struct SuppressExceptionFlattenAsyncExecutorProvider<T1, T2>

Type Parameters

T1
T2
Inherited Members

Constructors

SuppressExceptionFlattenAsyncExecutorProvider(IAsyncExecutor<T1, Optional<T2>>)

Provides suppression executor for asynchronous executors that already return Optional<T>.

public SuppressExceptionFlattenAsyncExecutorProvider(IAsyncExecutor<T1, Optional<T2>> executor)

Parameters

executor IAsyncExecutor<T1, Optional<T2>>

Methods

OfType<TEx>()

Suppresses exceptions of the specified type and preserves optional result shape.

public IAsyncExecutor<T1, Optional<T2>> OfType<TEx>() where TEx : Exception

Returns

IAsyncExecutor<T1, Optional<T2>>

Async executor that returns an empty optional when suppressed exception occurs.

Type Parameters

TEx

Exception type to suppress.