AsyncHelperSingleThreadContext Property

Gets a predefined context for non-async operations that forces to run a possibly parallel algorithm on a single thread, does not support reporting progress, and is not cancellable. It actually returns a SimpleContext instance.
See the Examples section of the AsyncHelper class for details about using IAsyncContext.

Definition

Namespace: KGySoft.Threading
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public static IAsyncContext SingleThreadContext { get; }

Property Value

IAsyncContext

See Also