Help / WLanguage / WLanguage functions / Standard functions / Process management functions / Parallel tasks
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
Waits for the end of execution of a parallel task.
// Triggers the execution of a task and waits for the task to be ended
t is ParallelTask = ParallelTaskExecute(Proc)
<Result> = ParallelTaskWait(<Task> [, <Maximum timeout>])
<Result>: Boolean
  • True if the task is ended properly.
  • False if the task is not ended properly. For example:
    • the maximum task duration has been reached,
    • the task was canceled.
<Task>: ParallelTask variable
Name of the ParallelTask variable to be used.
<Maximum timeout>: Optional integer or optional Duration
Maximum duration for running the task, expressed in hundredths of a second.
  • If this parameter is specified, ParallelTaskWait locks the application until the task execution is ended or until the maximum duration is reached.
  • If this parameter is not specified, ParallelTaskWait 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,
  • the indication of duration in clear ('1 s' or '10 ms' for example).
If ParallelTaskWait 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.
Component: wd280vm.dll
Minimum version required
  • Version 20
This page is also available for…
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help