Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View test_sup.erl
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
-module(test_sup).
-behaviour(supervisor).
 
%% 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.