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
Waits for the end of execution of a parallel task.
Ejemplo
// Triggers the execution of a task and waits for the task to be ended
t is ParallelTask = ParallelTaskExecute(Proc)
t.Wait()
Sintaxis
<Result> = <Task>.Wait([<Maximum duration>])
<Result>: booleano
  • True if the task is completed properly.
  • False if the task is not ended properly. For example:
    • the maximum task duration has been reached,
    • the task was canceled.
<Task>: La variable ParallelTask
Name of the ParallelTask variable to be used.
<Maximum duration>: Entero o duración opcional
Maximum duration for running the task, expressed in hundredths of a second.
  • If this parameter is specified, <ParallelTask variable>.Wait locks the application until the task execution is ended or until the maximum duration is reached.
  • If this parameter is not specified, <ParallelTask variable>.Wait locks the application until the task execution is ended.
This parameter can correspond to:
  • an integer corresponding to the number of hundredths of a second,
  • a Duration variable,
  • clear indication of duration (e.g. '1 s' or '10 cs').
Observaciones
If <ParallelTask variable>.Wait is called from the main thread, the task to be waited for must not be executed in the main thread. Otherwise, a lock will occur. Indeed, the main thread cannot wait for the end of the task and run it at the same time.
A WLanguage error signals the problem before the lock occurs.
Componente: wd300vm.dll
Versión mínima requerida
  • Versión 24
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 30/09/2024

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