snakia.core.rx.async_bindable
Functions
|
Decorator for overloaded functions/methods. |
Classes
|
An asynchronous bindable. |
|
|
|
|
|
Abstract base class for generic types. |
|
Type variable. |
|
- class snakia.core.rx.async_bindable.AsyncBindable(default_value=None)[source]
Bases:
BaseBindable[T],Generic[T]An asynchronous bindable.
- property default_value: T
- property has_default_value: bool
- property has_value: bool
- on(run_now=False)[source]
Decorator to subscribe to an value.
- Return type:
Callable[[BindableSubscriber[TypeVar(T),Awaitable[Any]]],Optional[Awaitable[None]]]
- set_silent(value)
- Return type:
None
- subscribe(subscriber, /, run_now=False)[source]
Subscribe to an value.
- Return type:
Optional[Awaitable[None]]
- property subscribers: tuple[BindableSubscriber[T, Awaitable[Any]], ...]
Get the subscribers.
- property value: T