Sha256: 2b85762d6916e003b021e7028943478dd7966b8302440c781fccdf0051b58775

Contents?: true

Size: 442 Bytes

Versions: 12

Compression:

Stored size: 442 Bytes

Contents

-module(asset_pool_sup).
-behaviour(supervisor).
-export([start_link/2, init/1]).

start_link(Handler, Number) ->
  supervisor:start_link(?MODULE, [Handler, Number]).

init([Handler, Number]) ->
  io:format("Using handler ~p~n", [Handler]),
  io:format("Using ~p handler instances~n", [Number]),
  {ok, {{one_for_one, 1, 60},
    [{asset_pool, {asset_pool, start_link, [Handler, Number]},
    permanent, brutal_kill, worker, [asset_pool]}]}}.

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
ernie-2.5.2 elib/asset_pool_sup.erl
ernie-2.5.1 elib/asset_pool_sup.erl
ernie-2.5.0 elib/asset_pool_sup.erl
ernie-2.4.0 elib/asset_pool_sup.erl
ernie-2.3.0 elib/asset_pool_sup.erl
ernie-2.2.1 elib/asset_pool_sup.erl
schleyfox-ernie-2.2.3 elib/asset_pool_sup.erl
schleyfox-ernie-2.2.2 elib/asset_pool_sup.erl
schleyfox-ernie-2.2.1 elib/asset_pool_sup.erl
ernie-2.2.0 elib/asset_pool_sup.erl
ernie-2.1.0 elib/asset_pool_sup.erl
ernie-2.0.0 elib/asset_pool_sup.erl