JavaScriptCore.WeakValue¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
w/co |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
This signal is emitted when the JavaScript value is destroyed. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class JavaScriptCore.WeakValue(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
JavaScriptCore.WeakValue
represents a weak reference to a value in aJavaScriptCore.Context
. It can be used to keep a reference to a JavaScript value without protecting it from being garbage collected and without referencing theJavaScriptCore.Context
either.- classmethod new(value)¶
- Parameters:
value (
JavaScriptCore.Value
) – aJavaScriptCore.Value
- Returns:
a new
JavaScriptCore.WeakValue
- Return type:
Create a new
JavaScriptCore.WeakValue
for the JavaScript value referenced by value.
- get_value()¶
- Returns:
a new
JavaScriptCore.Value
orNone
if self was cleared.- Return type:
Get a
JavaScriptCore.Value
referencing the JavaScript value of self.
Signal Details¶
- JavaScriptCore.WeakValue.signals.cleared(weak_value)¶
- Signal Name:
cleared
- Flags:
- Parameters:
weak_value (
JavaScriptCore.WeakValue
) – The object which received the signal
This signal is emitted when the JavaScript value is destroyed.
Property Details¶
- JavaScriptCore.WeakValue.props.value¶
- Name:
value
- Type:
- Default Value:
- Flags:
The
JavaScriptCore.Value
referencing the JavaScript value.