Skip to content

Consider behaviour of property notifications and events when there is no anyio event loop #116

@rwb27

Description

@rwb27

Is your feature request related to a problem? Please describe.
Code in the Property descriptor calls async functions to lay the groundwork for an events/notification mechanism. This is not yet fully implemented, but is used by the web socket code. These async calls will only work when they can be run in an event loop, i.e. after the ThingServer has been started. This can lead to errors when properties are written to on a Thing that has not yet been attached to a server and started.

Describe the solution you'd like
Errors, if raised, should be helpful and make it clear that a server is required. It would be even nicer if there was a way to disable the event mechanism, so that the Thing can function without the server.

Additional context
This closely follows the discussion in #115.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions