object Timeout
- Source
- Timeout.scala
- Alphabetic
- By Inheritance
- Timeout
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply[F[_], G[_], A](timeout: FiniteDuration)(http: Kleisli[F, A, Response[G]])(implicit arg0: Temporal[F]): Kleisli[F, A, Response[G]]
Transform the service to return a timeout response after the given duration if the service has not yet responded.
Transform the service to return a timeout response after the given duration if the service has not yet responded. If the timeout fires, the service's response is canceled.
- timeout
Finite duration to wait before returning a
503 Service Unavailable
response
- Note
if the service runs uncancelable effects while responding (e.g. if service uses MonadCancel#uncancelable under the hood) and has exceeded the timeout, then the expected behavior is:
- uncancelable effects will be completed naturally (regardless of how long it takes),
- after that, the timeout response will be returned. To get more insights on effect cancelation, dig into the MonadCancel documentation.
- def apply[F[_], G[_], A](timeout: FiniteDuration, timeoutResponse: F[Response[G]])(http: Kleisli[F, A, Response[G]])(implicit F: Temporal[F]): Kleisli[F, A, Response[G]]
Transform the service to return a timeout response after the given duration if the service has not yet responded.
Transform the service to return a timeout response after the given duration if the service has not yet responded. If the timeout fires, the service's response is canceled.
- timeout
Finite duration to wait before returning the provided response
- Note
if the service runs uncancelable effects while responding (e.g. if service uses MonadCancel#uncancelable under the hood) and has exceeded the timeout, then the expected behavior is:
- uncancelable effects will be completed naturally (regardless of how long it takes),
- after that, the timeout response will be returned. To get more insights on effect cancelation, dig into the MonadCancel documentation.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def httpApp[F[_]](timeout: FiniteDuration, timeoutResponse: F[Response[F]])(httpApp: HttpApp[F])(implicit arg0: Temporal[F]): HttpApp[F]
This is the same as apply[F[_],G[_],A](timeout:scala\.concurrent\.duration\.FiniteDuration,timeoutResponse*, but for HttpApp
- def httpApp[F[_]](timeout: FiniteDuration)(httpApp: HttpApp[F])(implicit arg0: Temporal[F]): HttpApp[F]
This is the same as apply[F[_],G[_],A](timeout:scala\.concurrent\.duration\.FiniteDuration)*, but for HttpApp
- def httpRoutes[F[_]](timeout: FiniteDuration, timeoutResponse: F[Response[F]])(httpRoutes: HttpRoutes[F])(implicit arg0: Temporal[F]): HttpRoutes[F]
This is the same as apply[F[_],G[_],A](timeout:scala\.concurrent\.duration\.FiniteDuration,timeoutResponse*, but for HttpRoutes
- def httpRoutes[F[_]](timeout: FiniteDuration)(httpRoutes: HttpRoutes[F])(implicit arg0: Temporal[F]): HttpRoutes[F]
This is the same as apply[F[_],G[_],A](timeout:scala\.concurrent\.duration\.FiniteDuration)*, but for HttpRoutes
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()