Skip to content

Commit

Permalink
Support for infinity shutdown for task supervisor
Browse files Browse the repository at this point in the history
  • Loading branch information
Garrett Smith committed Jul 2, 2016
1 parent e801acc commit c6c2549
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Binary file added .rebar3/erlcinfo
Binary file not shown.
1 change: 1 addition & 0 deletions src/e2_task_supervisor.erl
Expand Up @@ -126,6 +126,7 @@ validate_max_restart({MaxR, MaxT})
validate_max_restart(_) -> error.

validate_shutdown(Time) when is_integer(Time), Time >= 0 -> ok;
validate_shutdown(infinity) -> ok;
validate_shutdown(brutal_kill) -> ok;
validate_shutdown(_) -> error.

Expand Down

0 comments on commit c6c2549

Please sign in to comment.