withTimeout

gapt.utils.withTimeout
object withTimeout

runs f with timeout to

If f does terminate within to milliseconds returns its result. If not throw a TimeOutException. If f throws an exception it is propagated to the caller of withTimeout.

Attributes

Example
try { withTimeout( 1234 ) {
 /* ... your code ... */
} } catch {
 case e: TimeOutException /* ... */
 /* other exceptions */
}
Source
timeout.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply[T](duration: Duration)(f: => T): T

Attributes

Source
timeout.scala

Deprecated methods

def apply[T](to: Long)(f: => T): T

Attributes

Deprecated
true
Source
timeout.scala

Concrete fields

val logger: Logger

Attributes

Source
timeout.scala