Skip to content

Commit

Permalink
Allow pid worker to be checked back in
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsumner committed Apr 21, 2020
1 parent fb8705f commit 8c28a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/poolboy.erl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ checkout(Pool, Block) ->
checkout(Pool, Block, Timeout) ->
gen_fsm:sync_send_event(Pool, {checkout, Block, Timeout}, Timeout).

-spec checkin(Pool :: node(), Worker :: pid()) -> ok.
-spec checkin(Pool :: node() | pid(), Worker :: pid()) -> ok.
checkin(Pool, Worker) when is_pid(Worker) ->
gen_fsm:send_event(Pool, {checkin, Worker}).

Expand Down

0 comments on commit 8c28a49

Please sign in to comment.