object Timed
Companion object for Timed typeclass that offers three implicit providers: one for FutureOutcome,
one for Future of any type, and one for any other type.
The details are in the documentation for the implicit providers themselves (methods timed, timedFutureOf,
and timedFutureOutcome), but in short if a time limit is exceeded:
- if the type 
TinTimed[T]isFutureOutcometheFutureOutcomereturned bytimeoutAfterwill result in eitherFailedorCanceled - if the type is 
Future[U], theFuture[U]returned bytimeoutAfterwill fail with either aTestFailedDueToTimeoutExceptionor aTestCanceledException. - otherwise, the 
timeoutAftermethod will itself complete abruptly with eitherTestFailedDueToTimeoutExceptionorTestCanceledException. 
- Source
 - Timed.scala
 
- Alphabetic
 - By Inheritance
 
- Timed
 - 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
 
 -   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()
 
 -   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
 
 -   implicit  def timed[T]: Timed[T]
Implicit method that provides
Timedimplementation for anyT.Implicit method that provides
Timedimplementation for anyT.If the function completes before the timeout expires:
- If the function returns normally, this method will return normally.
 - If the function completes abruptly with an exception, this method will complete abruptly with that same exception.
 
If the function completes after the timeout expires:
- If the function returns normally, this method will complete abruptly with a 
StackDepthExceptioncreated fromexceptionFun. - If the function completes abruptly with an exception, this method will complete abruptly with a 
StackDepthExceptioncreated fromexceptionFunthat includes the exception thrown by the function as its cause. 
This implementation will start a timer that when the time limit is exceeded while the passed in function
fis still running, it will attempt to call the passed inSignalerto signal/interrupt the running functionf. -   implicit  def timedFutureOf[T](implicit executionContext: ExecutionContext): Timed[Future[T]]
Implicit method that provides
Timedimplementation for anyFuture[T].Implicit method that provides
Timedimplementation for anyFuture[T].If the asynchronous function completes before the timeout expires:
- If the function returns normally, the 
Futurewill be completed with the return value of the function. - If the function completes abruptly with an exception, this method will complete the 
Futurewith that same exception. 
If the asynchronous function completes after the timeout expires:
- If the function returns normally, this method will complete the 
Futurewith aStackDepthExceptioncreated fromexceptionFun. - If the function completes abruptly with an exception, this method will complete the 
Futurewith aStackDepthExceptioncreated fromexceptionFunthat includes the exception thrown by the function as its cause. 
This implementation will start a timer that when the time limit is exceeded while the passed in asynchronous function
fis still running, it will attempt to call the passed inSignalerto signal/interrupt the running functionf. - If the function returns normally, the 
 -   implicit  def timedFutureOutcome(implicit executionContext: ExecutionContext): Timed[FutureOutcome]
Implicit method that provides
Timedimplementation forFutureOutcome.Implicit method that provides
Timedimplementation forFutureOutcome.If the asynchronous function completes before the timeout expires:
- If the function returns normally, the 
FutureOutcomewill be completed with theOutcomereturned from the function. - If the function completes abruptly with an 
TestPendingException, this method will complete theFutureOutcomewithPending. - If the function completes abruptly with an 
TestCanceledException, this method will complete theFutureOutcomewithCanceledthat contains the thrown exception. - If the function completes abruptly with a run-aborting exception, this method will complete the 
FutureOutcomewithFailedthat contains the thrown exception. - If the function completes abruptly with a non-run-aborting exception, this method will fail the 
FutureOutcomewithExecutionExceptionthat contains the thrown exception. 
If the asynchronous function completes after the timeout expires:
- If the function returns normally, this method will complete the 
FutureOutcomewith aOutcomethat's mapped from the exception thrown fromexceptionFun. - If the function completes abruptly with an exception, this method will complete the 
FutureOutcomewithOutcomethat's mapped from the exception thrown fromexceptionFunthat includes the exception thrown by the function as its cause. 
This implementation will start a timer that when the time limit is exceeded while the passed in asynchronous function
fis still running, it will attempt to call the passed inSignalerto signal/interrupt the running functionf. - If the function returns normally, the 
 -    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()