TestCenter Reference
TestSupport.Async Namespace Reference

Support functions for asynchronous module handling. More...

Functions

def waitForModules (moduleList)
 Ask to wait for given modules to finish asynchronous processing. More...
 
def waitForModule (module)
 Method to wait for the given module to finish its task. More...
 
def setFinished ()
 Set task to be finished. More...
 

Variables

 gFinished = None
 Global variable for state tracking of the watched module. More...
 

Detailed Description

Support functions for asynchronous module handling.

Function Documentation

◆ setFinished()

def TestSupport.Async.setFinished ( )

Set task to be finished.

This method is used by the field listener and users must not use this method!

Definition at line 71 of file Async.py.

◆ waitForModule()

def 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.

Parameters
moduleModule to wait for.

Definition at line 44 of file Async.py.

Referenced by TestSupport.Async.waitForModules().

◆ waitForModules()

def 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.

Parameters
moduleListList of modules to wait for.

Definition at line 32 of file Async.py.

References TestSupport.Async.waitForModule().

Variable Documentation

◆ gFinished

TestSupport.Async.gFinished = None

Global variable for state tracking of the watched module.

Definition at line 24 of file Async.py.