TestCenter Reference
|
Support functions for asynchronous module handling. More...
Functions | |
waitForModules (moduleList) | |
Ask to wait for given modules to finish asynchronous processing. | |
waitForModule (module) | |
Method to wait for the given module to finish its task. | |
setFinished () | |
Set task to be finished. | |
Variables | |
gFinished = None | |
Global variable for state tracking of the watched module. | |
Support functions for asynchronous module handling.
TestSupport.Async.setFinished | ( | ) |
TestSupport.Async.waitForModule | ( | module | ) |
Method to wait for the given module to finish its task.
This method is only applicable for modules being having a taskRunning and taskFinished field. If the module is not running, i.e. taskRunning is set to false, the method will return immediately. Otherwise the method will wait for the module to finish its background task.
module | Module to wait for. |
Definition at line 44 of file Async.py.
Referenced by TestSupport.Async.waitForModules().
TestSupport.Async.waitForModules | ( | moduleList | ) |
Ask to wait for given modules to finish asynchronous processing.
The module names are given in a list and the method will return only if all modules have finished processing.
moduleList | List of modules to wait for. |
Definition at line 32 of file Async.py.
References TestSupport.Async.waitForModule().