Represents the context of a possibly asynchronous operation.
See the Examples
section of the AsyncHelper
class to see how to create sync and async methods (supporting
return types) using the same shared implementation with an IAsyncContext
KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 7.1.0
public interface IAsyncContext
Public Interface IAsyncContext
public interface class IAsyncContext
type IAsyncContext = interface end
Gets whether this operation can be canceled.
Gets whether the cancellation of the current operation has been requested.
Gets the maximum degree of parallelism. If zero or less, then it is adjusted automatically.
Gets an IAsyncProgress instance that can be used to report progress, or if
no progress reporter belongs to the current operation.
Gets the user provided object that was configured in the State property
this IAsyncContext instance was created from.