AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de gestión de procesos / Tareas paralelas
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
Versión mínima requerida
  • Versión 24
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 30/06/2023

Señalar un error o enviar una sugerencia | Ayuda local