Created
May 17, 2018 11:46
-
-
Save leandrocp/c13b6f65607873d1f2dcff852392ea23 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iex(1)> defmodule Example, do: use GenServer | |
iex(2)> {:ok, pid} = GenServer.start_link(Example, %{ping: "pong"}) | |
iex(3)> :sys.get_state(pid) | |
%{ping: "pong"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment