Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 15 lines (12 sloc) 0.355 kb
f8836ac Forgot to add new boss_pool.erl
Evan Miller authored
1 -module(boss_pool).
2 -export([call/2, call/3]).
3
4 call(Pool, Msg) ->
5 Worker = poolboy:checkout(Pool),
6 Reply = gen_server:call(Worker, Msg),
7 poolboy:checkin(Pool, Worker),
8 Reply.
9
10 call(Pool, Msg, Timeout) ->
11 Worker = poolboy:checkout(Pool),
12 Reply = gen_server:call(Worker, Msg, Timeout),
13 poolboy:checkin(Pool, Worker),
14 Reply.
Something went wrong with that request. Please try again.