AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de gestión de procesos / Tareas paralelas
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Indicates a continuation parallel task that will be run when the specified parallel task is completed.
Ejemplo
// Starts a task
t1 is ParallelTask = ParallelTaskExecute(Proc1)
// The ContinuationProc procedure will be run when the task is completed 
ParallelTaskExecuteAfter(t1, ContinuationProc)
Sintaxis

Indicating a procedure that will be run after a previous task Ocultar los detalles

<Result> = ParallelTaskExecuteAfter(<Previous task> , <Continuation procedure> [, <Parameters> [, <Options>]])
<Result>: ParallelTask variable
ParallelTask variable corresponding to the continuation task.
<Previous task>: ParallelTask variable
Name of the ParallelTask variable corresponding to the previous task.
<Continuation procedure>: Character string or Procedure variable
Procedure to run after the specified previous task. This parameter can correspond to:
  • the name of the WLanguage procedure to run.
  • the name of the Procedure variable corresponding to the continuation procedure to run.
<Parameters>: List of values enclosed in brackets, separated by commas
Parameters of the procedure to be executed. This list of parameters has the following format:
(<Parameter 1>, ..., <Parameter N>)
where:
  • <Parameter 1> is the first parameter of the procedure.
  • ...
  • <Parameter N> is the nth parameter of the procedure.
Note: The ReturnValuePreviousTask keyword is used to pass the return value(s) of the previous task as a parameter to the continuation procedure.
<Options>: Optional Integer constant (or combination of constants)
Options of task to run:
ptoDelayedCopyHFSQLContext
(Default value)
Triggers a light copy of HFSQL context during the first access to the HFSQL data.
ptoFullCopyHFSQLContextTriggers the immediate copy of the current HFSQL context.
Recommended, for example, if the parallel task must take into account the current positions in the files and queries of the context of the caller.
ptoLightCopyHFSQLContextTriggers the immediate copy of a part of the current HFSQL context.
Only the directories containing the data files in HFSQL Classic mode and/or the connections in HFSQL Client/Server mode are stored.
ptoMainThreadRuns the task in the main thread.
This constant can be combined with one of the other constants.

Indicating a described task that will be run after a previous task Ocultar los detalles

<Result> = ParallelTaskExecuteAfter(<Previous task> , <Continuation task>)
<Result>: ParallelTask variable
ParallelTask variable corresponding to the continuation task.
<Previous task>: ParallelTask variable
Name of the ParallelTask variable corresponding to the previous task.
<Continuation task>: ParallelTask variable
Name of the ParallelTask variable corresponding to the task that will be run after.

Describing a task that will be run after a previous task Ocultar los detalles

<Result> = ParallelTaskExecuteAfter(<Previous task> , <Description of continuation task>)
<Result>: ParallelTask variable
ParallelTask variable corresponding to the continuation task.
<Previous task>: ParallelTask variable
Name of the ParallelTask variable corresponding to the previous task.
<Description of continuation task>: Description of ParallelTask variable
Name of the Description of ParallelTask variable describing the task that will be run after.
Observaciones
  • ParallelTaskExecuteAfter is a non-blocking function.
  • If the function is called while the task is already ended, the continuation will be run as soon as possible.
  • If the function is called while the task is already canceled, the continuation will not be run.
  • If the previous task is canceled while a continuation was created, the continuation will not be run.
  • In the code of the continuation task, the MyPreviousParallelTask keyword is used to handle the previous ended task.
Clasificación Lógica de negocio / UI: Código neutro
Componente: wd300vm.dll
Versión mínima requerida
  • Versión 20
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 28/03/2025

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