Created
May 7, 2016 20:47
-
-
Save StevenXL/0ae9236dee234b7bb6f3d910e9155e6e to your computer and use it in GitHub Desktop.
GenServer Supervisor - Revision 1
This file contains 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
defmodule GenServerSupervisor do | |
use GenServer | |
# Client API # | |
def start_link do | |
GenServer.start_link(__MODULE__, []) | |
end | |
# Server API # | |
def init(child_specs) do | |
Process.flag(:trap_exit, true) | |
end | |
# Helper Functions # | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment