Method Cancel
- Namespace
- MaaFramework.Binding
- Assembly
- MaaFramework.Binding.dll
Cancel(Func<bool>?, Task<bool>?, MaaJob?)
Cancels the agent operation.
bool Cancel(Func<bool>? waitFunc = null, Task<bool>? waitTask = null, MaaJob? waitJob = null)Parameters
waitFuncFunc<bool>?-
The func that needs to be canceled.
waitTaskTask<bool>?-
The task that needs to be canceled.
waitJobMaaJob?-
The job that needs to be canceled.
Returns
- bool
-
The return value of
waitFuncANDwaitTask.Result ANDwaitJob.IsSucceeded().