Table of Contents

Struct SuppressExceptionAsyncExecutorProvider<T1, T2>

Namespace
Executables.Executors
Assembly
executables.dll

Provides suppression executor for asynchronous executors.

public readonly ref struct SuppressExceptionAsyncExecutorProvider<T1, T2>

Type Parameters

T1
T2
Inherited Members

Constructors

SuppressExceptionAsyncExecutorProvider(IAsyncExecutor<T1, T2>)

Provides suppression executor for asynchronous executors.

public SuppressExceptionAsyncExecutorProvider(IAsyncExecutor<T1, T2> executor)

Parameters

executor IAsyncExecutor<T1, T2>

Methods

OfType<TEx>()

Suppresses exceptions of the specified type and converts the result into Optional<T>.

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.