Subscription
class¶
Bases: Unsubscribable
A base class that represents a subscription to a source.
Notes:
- This class encapsulates the subscription lifecycle and provides a mechanism for releasing or cleaning up any associated resources.
Source code in pyventus/core/subscriptions/subscription.py
Attributes¶
timestamp
property
¶
Retrieve the timestamp when the subscription was created.
RETURNS | DESCRIPTION |
---|---|
datetime
|
The timestamp when the subscription was created. |
Functions¶
__init__
¶
Initialize an instance of Subscription
.
PARAMETER | DESCRIPTION |
---|---|
teardown_callback
|
A callback function invoked during the unsubscription process to perform cleanup or teardown operations associated with the subscription. It should return
TYPE:
|