object Timeout

Source
Timeout.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Timeout
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def apply[F[_], G[_], A](timeout: FiniteDuration)(http: Kleisli[F, A, Response[G]])(implicit F: Concurrent[F], T: Timer[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

  2. def apply[F[_], G[_], A](timeout: FiniteDuration, timeoutResponse: F[Response[G]])(http: Kleisli[F, A, Response[G]])(implicit F: Concurrent[F], T: Timer[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