fsl.utils.weakfuncref

This module provides the WeakFunctionRef class.

class fsl.utils.weakfuncref.WeakFunctionRef(func)

Bases: object

Class which encapsulates a weakref to a function or method.

This class is used by Notifier instances to reference listeners which have been registered to be notified of property value or attribute changes.

function()

Return a reference to the encapsulated function or method, or None if the function has been garbage collected.