Packages

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. val DefaultTimeoutResponse: Task[Response]
  2. def apply(timeout: Duration, response: Task[Response] = DefaultTimeoutResponse)(service: HttpService)(implicit scheduler: Scheduler, ec: ExecutionContext): HttpService

    Transform the service to return a timeout response Status after the supplied duration if the service response is not yet ready.

    Transform the service to return a timeout response Status after the supplied duration if the service response is not yet ready. The service response task continues to run in the background. To interrupt a server side response safely, look at scalaz.stream.wye.interrupt.

    timeout

    Duration to wait before returning the RequestTimeOut

    service

    HttpService to transform