AsyncConfig(AsyncCallback, FuncBoolean) Constructor
Namespace: KGySoft.ThreadingAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public AsyncConfig(
AsyncCallback? completedCallback,
Func<bool>? isCancelRequestedCallback = null
)
Public Sub New (
completedCallback As AsyncCallback,
Optional isCancelRequestedCallback As Func(Of Boolean) = Nothing
)
public:
AsyncConfig(
AsyncCallback^ completedCallback,
Func<bool>^ isCancelRequestedCallback = nullptr
)
new :
completedCallback : AsyncCallback *
?isCancelRequestedCallback : Func<bool>
(* Defaults:
let _isCancelRequestedCallback = defaultArg isCancelRequestedCallback null
*)
-> AsyncConfig
Parameters
- completedCallback AsyncCallback
- A callback that will be invoked when the operation is completed..
- isCancelRequestedCallback FuncBoolean (Optional)
- A callback that can return whether cancellation has been requested.