Concepts

Observable Property

Add an observable property to your connector.

Add the ObservableProperty decorator to a method to turn it into an observable property.

@sila.ObservableProperty()
async def subscribe_random_number() -> sila.Stream[int]:
    """ Returns subscription to a random number generator. """
    yield 42

🧱🚧🏗️ Coming soon: Yielding and returning responses with observables 🧱🚧🏗️


Copyright © 2024