Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 230f57a993
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (12 sloc) 0.355 kB
-module(boss_pool).
-export([call/2, call/3]).
call(Pool, Msg) ->
Worker = poolboy:checkout(Pool),
Reply = gen_server:call(Worker, Msg),
poolboy:checkin(Pool, Worker),
Reply.
call(Pool, Msg, Timeout) ->
Worker = poolboy:checkout(Pool),
Reply = gen_server:call(Worker, Msg, Timeout),
poolboy:checkin(Pool, Worker),
Reply.
Jump to Line
Something went wrong with that request. Please try again.