Skip to content

Commit

Permalink
Merge pull request #189 from inaka/docs_add_defaults
Browse files Browse the repository at this point in the history
Document wpool_init:add_defaults/1
  • Loading branch information
elbrujohalcon authored Jan 7, 2022
2 parents 60a2ee5 + dc9d3cd commit 6aedba6
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 6aedba6

Please sign in to comment.