ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Process functions / Parallel tasks
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Requests the cancellation of a parallel task.
Example
// Triggers the execution of a task
t is ParallelTask = Proc.Execute()
...
// Cancels the execution of the task
t.RequestCancellation()
Syntax

Requesting the cancellation of a parallel task Hide the details

<Task>.RequestCancellation()
<Task>: ParallelTask variable
Name of the ParallelTask variable to be used.
Remarks
  • A cancellation request is transmitted to the task. The code of the task must manage the cancellation request via the following syntax:
    MyParallelTask.Canceled
  • The call to <ParallelTask variable>.RequestCancellation is non-blocking. The task is considered canceled when the function is called.
  • The task is flagged as ptsCancellationRequested. Any call to the ReturnedValue property will trigger a fatal error.
Component: wd290vm.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/30/2023

Send a report | Local help