Skip to content

Instantly share code, notes, and snippets.

@knewter
Created September 25, 2013 06:42
Show Gist options
  • Save knewter/6695918 to your computer and use it in GitHub Desktop.
Save knewter/6695918 to your computer and use it in GitHub Desktop.
iex(1)> :application.start(:gproc)
:ok
iex(2)> :application.start(:gproc)
{:error, {:already_started, :gproc}}
iex(3)> :gproc.reg({:n, :l, 'foo'}, 'bar')
true
iex(4)> :gproc.get_value({:n, :l, 'foo'})
'bar'
iex(5)> :gproc.get_value({:n, :l, 'foos'})
** (ArgumentError) argument error
src/gproc.erl:1342: :gproc.get_value({:n, :l, 'foos'})
erl_eval.erl:569: :erl_eval.do_apply/6
src/elixir.erl:138: :elixir.eval_forms/3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment