View Source Exshome.Dependency behaviour (Exshome - Elixir Smart Home v0.1.7)

Contains all dependency-related features.

Link to this section Summary

Link to this section Types

@type dependency() :: atom()
@type value() :: term() | Exshome.Dependency.NotReady

Link to this section Callbacks

@callback get_value() :: value()

Link to this section Functions

Link to this function

broadcast_value(dependency, value)

View Source
@spec broadcast_value(dependency(), value()) :: :ok
@spec get_value(dependency()) :: value()
@spec subscribe(dependency()) :: value()
@spec unsubscribe(dependency()) :: :ok