aigct.util
Utility classes
Classes
Classes that wish to behave as threadsafe singletons can inherit from |
|
Functions
|
Module Contents
- class aigct.util.ParameterizedSingleton[source]
Classes that wish to behave as threadsafe singletons can inherit from this class. To be used only by classes that have an initialization method that takes parameters. The class must implement an _init_once method instead of the normal __init__ method for initialization. It takes same parameters as __init__ method. By inheriting from this class all instantiations of the subclass will return the same instance.