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 Objecttrait Matchableclass Any
- Self type
-
withTimeout.type
Members list
In this article