Skip to content

Singleton

faststream.utils.classes.Singleton #

A class to implement the Singleton design pattern.

METHOD DESCRIPTION
__new__

creates a new instance of the class if it doesn't exist, otherwise returns the existing instance

_drop

sets the instance to None, allowing a new instance to be created

Note

The above docstring is autogenerated by docstring-gen library (https://docstring-gen.airt.ai)


Last update: 2023-11-13