diff options
author | aleksandar <aleksandar@lampmac14.epfl.ch> | 2011-12-12 18:15:41 +0100 |
---|---|---|
committer | aleksandar <aleksandar@lampmac14.epfl.ch> | 2011-12-12 18:15:41 +0100 |
commit | 7021aef3fd8a20c8f730af36f229e7bb2cfe8fb5 (patch) | |
tree | 64b868af65bb1b998c63f1265ed12430a4a78da5 /test/files/jvm | |
parent | 64d50018b7a17c952c2bffaa38928bee2a9ee36c (diff) | |
download | scala-7021aef3fd8a20c8f730af36f229e7bb2cfe8fb5.tar.gz scala-7021aef3fd8a20c8f730af36f229e7bb2cfe8fb5.tar.bz2 scala-7021aef3fd8a20c8f730af36f229e7bb2cfe8fb5.zip |
Syntax changes for the scala.concurrent package and some cleanup.
block on {
}
is now changed to:
block(timeout) {
}
Diffstat (limited to 'test/files/jvm')
-rw-r--r-- | test/files/jvm/concurrent-future.scala | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/test/files/jvm/concurrent-future.scala b/test/files/jvm/concurrent-future.scala index 9c2f04fb07..8fb237eb0a 100644 --- a/test/files/jvm/concurrent-future.scala +++ b/test/files/jvm/concurrent-future.scala @@ -1,5 +1,9 @@ -import scala.concurrent.{ executionContext, FutureTimeoutException, ExecutionException, SyncVar } -import executionContext._ + + + +import scala.concurrent._ + + object Test extends App { @@ -60,9 +64,10 @@ object Test extends App { output(4, "onoes") done() } - f onFailure { _ => - output(4, "kthxbye") - done() + f onFailure { + case _ => + output(4, "kthxbye") + done() } } |