ConnectionPool(T)
Sharing connections across coroutines.
Connections will be checkout from the pool and tied to the current fiber, until they are checkin, and thus be usable by another coroutine. Connections may also be manually checkout and checkin.
TODO: reap connection of dead coroutines that didn't checkin (or died before)
Constructors
Instance methods
connection
Returns the already checkout connection or checkout a connection then attaches it to the current Fiber.
connection
Yields a connection.
If a connection was already checkout for the curent Fiber, it will be yielded. Otherwise a connection will be checkout and tied to the current Fiber, passed to the block and eventually checkin.