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

Returns a specification to start this module under a supervisor.

See Supervisor.

Get the value associated with a given key from the state

Link to this function

set(key, value) View Source
set(atom(), any()) :: :ok

Update the shared state with a given key and value