blob: 8a3a72bb2748eca11160f017e66eb5cdf92b375a (
plain) (
tree)
|
|
defmodule Nola.IcecastAgent do
use Agent
def start_link() do
Agent.start_link(fn -> nil end, name: __MODULE__)
end
def update(stats) do
Agent.update(__MODULE__, fn(_old) -> stats end)
end
def get do
Agent.get(__MODULE__, fn(stats) -> stats end)
end
end
|