Skip to content

Instantly share code, notes, and snippets.

@blackode
Created February 14, 2017 12:14
Show Gist options
  • Save blackode/394f6cade737336db758a3f0cd274e58 to your computer and use it in GitHub Desktop.
Save blackode/394f6cade737336db758a3f0cd274e58 to your computer and use it in GitHub Desktop.
GenServer initiation
def init(password) do
{:ok, [password]} # ----------- state is stored as list of passwords
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment