Permalink
Browse files

Merge pull request #38 from synlay/feature/behaviour_callback_refacto…

…ring

Dialyzer behaviour/callback optimizations for newer Erlang releases
  • Loading branch information...
2 parents 3ac9cc1 + 5bbfc1a commit d47df5df57b22eb183b0c48c8dcc5f9827fad71b @devinus committed Jan 14, 2014
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/poolboy_worker.erl
View
@@ -2,9 +2,9 @@
-module(poolboy_worker).
--export([behaviour_info/1]).
-
-behaviour_info(callbacks) ->
- [{start_link, 1}];
-behaviour_info(_Other) ->
- undefined.
+-callback start_link(WorkerArgs) -> {ok, Pid} |
+ {error, {already_started, Pid}} |
+ {error, Reason} when
+ WorkerArgs :: proplists:proplist(),
+ Pid :: pid(),
+ Reason :: term().

0 comments on commit d47df5d

Please sign in to comment.