Skip to content
Create a gist now

Instantly share code, notes, and snippets.

%% Supervisor callbacks
-export([init/1, start_child/0, start_link/0]).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
start_child() ->
supervisor:start_child(?MODULE, []).
init([]) ->
{ok, {{simple_one_for_one, 5, 1}, [
{test, {test, start_link, []}, permanent, brutal_kill, worker, [test]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.