korolev.effect.AsyncResourcePool
See theAsyncResourcePool companion object class AsyncResourcePool[F[_], T](name: String, factory: => F[T], currentNanos: () => F[Long], maxCount: Int, maxIdleTime: FiniteDuration)(implicit evidence$1: Effect[F], evidence$2: Close[F, T], reporter: Reporter) Asynchronous non-blocking resource pool with lifetime control.
Attributes
- Companion:
- object
- Graph
- Supertypes
class Object
trait Matchable
class Any
Members list
Concise view
Type members
Attributes
- Graph
- Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Attributes
- Graph
- Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Value members
Borrow item from the pool.
Borrow item from the pool.
- Borrow one of idle items if it exists
- Otherwise try to creates one using factory
- If maxCount is reached, waits until one of borrowed items would given back
Attributes