Skip to content

Instantly share code, notes, and snippets.

@aharpole
Created March 9, 2019 00:09
Show Gist options
  • Save aharpole/bf27860eadba43ef994d603b7d74ae0a to your computer and use it in GitHub Desktop.
Save aharpole/bf27860eadba43ef994d603b7d74ae0a to your computer and use it in GitHub Desktop.
new genserver update_config
GenServer.update_config(pid, fn config -> Keyword.update(config, :increment_by, 2) end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment