PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
<ParallelTask variable>.RequestCancelation (Function)
In french: <Variable TâcheParallèle>.DemandeAnnulation
Requests the cancelation of a parallel task.
Example
// Triggers the execution of a task
t is ParallelTask = ParallelTaskExecute(Proc)
...
// Cancels the execution of the task
t.RequestCancelation()
Syntax

Requesting the cancelation of a parallel task Hide the details

<Task>.RequestCancelation()
<Task>: ParallelTask variable
Name of the ParallelTask variable to use.
Remarks
  • A cancelation request is transmitted to the task. The code of the task must manage the cancelation request via the following syntax:
    MyParallelTask..Canceled
  • The call to <ParallelTask variable>.RequestCancelation is a non-locking call. The task is considered as being canceled as soon as the function is called.
  • The task is flagged as ptsCancelationRequested. Any call to ..ReturnedValue will trigger a fatal error.
Component : wd250vm.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment