Skip to content
c7fbad1 Apr 27, 2012
15 lines (10 sloc) 356 Bytes
%% Poolboy - A hunky Erlang worker pool factory
-module(poolboy_sup).
-behaviour(supervisor).
-export([start_link/2, init/1]).
start_link(Mod, Args) ->
supervisor:start_link(?MODULE, {Mod, Args}).
init({Mod, Args}) ->
{ok, {{simple_one_for_one, 0, 1},
[{Mod, {Mod, start_link, [Args]},
temporary, 5000, worker, [Mod]}]}}.
Something went wrong with that request. Please try again.