PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
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
Waits for the end of execution of a parallel task.
Versions 21 and later
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 23 and later
Java This function is now available for Java applications.
Android Widget This function is now available in Android widget mode.
Android This function is now available for Android applications.
New in version 23
Java This function is now available for Java applications.
Android Widget This function is now available in Android widget mode.
Android This function is now available for Android applications.
Java This function is now available for Java applications.
Android Widget This function is now available in Android widget mode.
Android This function is now available for Android applications.
Example
// Déclenche l'exécution d'une tâche et attend que la tâche soit terminée
t is ParallelTask = ParallelTaskExecute(Proc)
ParallelTaskWait(t)
Syntax
<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 variable of type ParallelTask 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,
  • Versions 23 and later
    the indication of duration in clear ('1 s' or '10 ms' for example).
    New in version 23
    the indication of duration in clear ('1 s' or '10 ms' for example).
    the indication of duration in clear ('1 s' or '10 ms' for example).
Remarks
If function ParallelTaskWait is called from main the thread, the task to be waited for must not run in main the 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: wd270vm.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment