Skip to content

Instantly share code, notes, and snippets.

@jkvor
Created March 10, 2010 22:24
Show Gist options
  • Save jkvor/328522 to your computer and use it in GitHub Desktop.
Save jkvor/328522 to your computer and use it in GitHub Desktop.
-module(foo_app).
-behaviour(application).
-export([start/2, stop/1, init/1]).
start(_, _) ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
stop(_) ->
ok.
init(_) ->
{ok, {{one_for_one, 10, 10}, [
{foo, {foo, start_link, []}, permanent, 5000, worker, [foo]}
]}}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment