AsyncConfigBaseThrowIfCanceled Property

Gets or sets whether an OperationCanceledException should be thrown when ending or awaiting a canceled async operation. If the value of this property is , then canceled non-void operations will return some value, which is usually the default value of their return type.
Default value: .

Definition

Namespace: KGySoft.Threading
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.2.0
C#
public bool ThrowIfCanceled { get; set; }

Property Value

Boolean

See Also