package_name_to_import_with.garbage_collection_module module#

Define top level decorator.

FunctionType#

alias of Callable[..., Any]

define_garbage_collection_decorator(function_to_be_decorated: Callable[[...], Any]) Callable[[...], Any][source]#

Perform forcefully garbage collection after execution of provided function.

Parameters:

function_to_be_decorated (FunctionType) -- function whose execution may require forceful garbage collection

Returns:

decorated function

Return type:

FunctionType