Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
15 lines (10 sloc) 0.356 kb
%% 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]}]}}.
Jump to Line
Something went wrong with that request. Please try again.