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
Warning
From version 28, ParallelTaskRequestCancelation is kept for backward compatibility. This function is replaced by ParallelTaskRequestCancellation.
Requests the cancellation of a parallel task.
Example
// Triggers the execution of a task
t is ParallelTask = ParallelTaskExecute(Proc)
...
// Cancels the execution of the task
ParallelTaskRequestCancellation(t)
Syntax

Requesting the cancellation of a parallel task Hide the details

ParallelTaskRequestCancellation(<Task>)
<Task>: ParallelTask variable
Name of the ParallelTask variable to be used.

Requesting the cancellation of parallel tasks found in an array Hide the details

ParallelTaskRequestCancellation(<Array of tasks>)
<Array of tasks>: Array of ParallelTask variables
Name of the array of ParallelTask variables 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 ParallelTaskRequestCancellation 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.
Business / UI classification: Neutral code
Component: wd290vm.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/20/2023

Send a report | Local help