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