ResPool

zhttp.clients.ResPool$
object ResPool

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ResPool.type

Members list

Concise view

Type members

Classlikes

case class ResRec[R](res: R, timeToLive: Long)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
trait Service[R]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Types

type ResPool[R] = Service[R]

Value members

Concrete methods

def acquire[R](implicit tagged: Tag[R]): ZIO[Service[R], Throwable, R]
def makeScoped[R](timeToLiveMs: Int, createResource: () => R, closeResource: R => Unit)(implicit tagged: Tag[R]): ZLayer[Any, Nothing, Service[R]]
def makeScopedZIO[R](timeToLiveMs: Int, createResource: () => ZIO[Any, Exception, R], closeResource: R => ZIO[Any, Exception, Unit])(implicit tagged: Tag[R]): ZLayer[Any, Nothing, Service[R]]
def release[R](r: R)(implicit tagged: Tag[R]): ZIO[Service[R], Nothing, Unit]