AsyncHelperDoOperationSynchronously(ActionIAsyncContext, ParallelConfig) Method

Executes the specified operation synchronously, in which some sub-operations may run in parallel.
See the Examples section of the AsyncHelper class for details.

Definition

Namespace: KGySoft.Threading
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.2.0
C#
public static void DoOperationSynchronously(
	Action<IAsyncContext> operation,
	ParallelConfig? configuration
)

Parameters

operation  ActionIAsyncContext
The operation to be executed.
configuration  ParallelConfig
The configuration for the operation.

Exceptions

ArgumentNullExceptionoperation is .
OperationCanceledExceptionThe operation has been canceled and ThrowIfCanceled in configuration was .

See Also