WeakValue
-
class WeakValue(**properties: Any)
Superclasses: Object
JSCWeakValue represents a weak reference to a value in a Context
. It can be used
to keep a reference to a JavaScript value without protecting it from being garbage
collected and without referencing the Context
either.
Constructors
-
class WeakValue
-
classmethod new(value: Value) → WeakValue
Create a new WeakValue
for the JavaScript value referenced by value
.
- Parameters:
value – a Value
Methods
-
class WeakValue
-
get_value() → Value
Get a Value
referencing the JavaScript value of weak_value
.
Properties
-
class WeakValue
-
props.value: Value
The type of the None singleton.
Signals
-
class WeakValue.signals
-
cleared() → None
The type of the None singleton.