Skip to main content

register_drainer

Decorator used to register a new result drainer type.

def register_drainer(
name: string
) - > function

Decorator used to register a new result drainer type.

Parameters

NameTypeDescription
namestringThe unique identifier used to map the result drainer class within the registry.

Returns

TypeDescription
functionA decorator function that registers the decorated class into the global drainers registry using the provided name.