From dc9d3cdcfb79ff9b5fd71c9616a57c001d5eec44 Mon Sep 17 00:00:00 2001 From: Nelson Vides Date: Fri, 7 Jan 2022 10:39:38 +0100 Subject: [PATCH] Document wpool_init:add_defaults/1 --- src/wpool_utils.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wpool_utils.erl b/src/wpool_utils.erl index dbb4c78..b9ce477 100644 --- a/src/wpool_utils.erl +++ b/src/wpool_utils.erl @@ -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()).