A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.playframework.com/documentation/2.5.x/api/scala/play/api/libs/concurrent/Promise$.html below:

Promise - play.api.libs.concurrent.Promise

Deprecated Value Members
  1. def timeout[A](message: ⇒ A, duration: Long, unit: TimeUnit = TimeUnit.MILLISECONDS)(implicit ec: ExecutionContext): Future[A]

    Constructs a Future which will contain value "message" after the given duration elapses.

    Constructs a Future which will contain value "message" after the given duration elapses. This is useful only when used in conjunction with other Promises

    message

    message to be displayed

    duration

    duration for the scheduled promise

    returns

    a scheduled promise

    Annotations
    @deprecated
    Deprecated

    (Since version 2.5.0) Use akka.pattern.after(duration, actorSystem.scheduler)(Future(message)) instead

  2. def timeout[A](message: ⇒ A, duration: Duration)(implicit ec: ExecutionContext): Future[A]

    Constructs a Future which will contain value "message" after the given duration elapses.

    Constructs a Future which will contain value "message" after the given duration elapses. This is useful only when used in conjunction with other Promises

    message

    message to be displayed

    duration

    duration for the scheduled promise

    returns

    a scheduled promise

    Annotations
    @deprecated
    Deprecated

    (Since version 2.5.0) Use akka.pattern.after(duration, actorSystem.scheduler)(Future(message)) instead


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4