ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
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
// Déclenche l'exécution d'une tâche
t is ParallelTask = ParallelTaskExecute(Proc)
...
// Annule l'exécution de la tâche
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:
    MaTâcheParallèle.Annulée
  • 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: wd280vm.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment