Skip to content

Commit

Permalink
Document wpool_init:add_defaults/1
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed Jan 7, 2022
1 parent 60a2ee5 commit dc9d3cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wpool_utils.erl
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ task_end(TimerRef) ->
_ = erlang:cancel_timer(TimerRef),
erlang:erase(wpool_task).

%% @doc Adds default parameters to a pool configuration
-spec add_defaults([wpool:option()]) -> [wpool:option()].
add_defaults(Opts) ->
lists:ukeymerge(1, lists:sort(Opts), defaults()).
Expand Down

0 comments on commit dc9d3cd

Please sign in to comment.