iaml.meta_singleton

Thread-safe implementation of Singleton

Classes

MetaSingleton

Thread-safe implementation of Singleton

Module Contents

class iaml.meta_singleton.MetaSingleton

Bases: type

Thread-safe implementation of Singleton

__call__(*args, **kwargs) → Any
classmethod reset() → None

Delete saved instances -> Reset the singleton

Parameters:

mcs (MetaSingleton) – The singleton to reset