Pico v0.1.2 Pico.Client.SharedState View Source
Provides a shared state that all handlers have access to
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Get the value associated with a given key from the state
Update the shared state with a given key and value
Link to this section Functions
Link to this function
child_spec(arg) View Source
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
get(key) View Source
Get the value associated with a given key from the state
Link to this function
set(key, value) View Source
Update the shared state with a given key and value
Link to this function