Reusable

org.typelevel.keypool.Reusable
See theReusable companion object
sealed trait Reusable

Reusable is a Coproduct of the two states a Resource can be in at the end of its lifetime.

If it is Reuse then it will be attempted to place back in the pool, if it is in DontReuse the resource will be shutdown.

Attributes

Companion
object
Source
Reusable.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object DontReuse.type
object Reuse.type
In this article