slipstream.utils¶
Slipstream utilities.
Attributes¶
Classes¶
Signals can be exchanged with streams. |
|
Maintain a single instance of a class. |
|
Singleton publish subscribe pattern class. |
|
Async generator that synchronizes values across copies. |
Functions¶
|
Convert into awaitable. |
|
Return function parameter names. |
Module Contents¶
- class slipstream.utils.Signal[source]¶
Bases:
enum.EnumSignals can be exchanged with streams.
SENTINEL represents an absent yield value PAUSE represents the signal to pause stream RESUME represents the signal to resume stream STOP represents an exhausted stream
- class slipstream.utils.PubSub[source]¶
Singleton publish subscribe pattern class.
- publish(topic: str, *args: Any, **kwargs: Any) None[source]¶
Publish message to subscribers of topic.