diff options
author | Philipp Haller <hallerp@gmail.com> | 2009-12-21 16:03:07 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2009-12-21 16:03:07 +0000 |
commit | 348fd6e69ae96b5d8187e1f25372c0908a5ce218 (patch) | |
tree | 1410e97d31e73632ddfc67728fdc16c231e64ed5 /test/files/jvm/future-awaitall-zero.scala | |
parent | 27f2d87d886d302282bf12e30ebc271074ebef52 (diff) | |
download | scala-348fd6e69ae96b5d8187e1f25372c0908a5ce218.tar.gz scala-348fd6e69ae96b5d8187e1f25372c0908a5ce218.tar.bz2 scala-348fd6e69ae96b5d8187e1f25372c0908a5ce218.zip |
closed #2829. review by rompf.
Diffstat (limited to 'test/files/jvm/future-awaitall-zero.scala')
-rw-r--r-- | test/files/jvm/future-awaitall-zero.scala | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/files/jvm/future-awaitall-zero.scala b/test/files/jvm/future-awaitall-zero.scala new file mode 100644 index 0000000000..49c51f2c7e --- /dev/null +++ b/test/files/jvm/future-awaitall-zero.scala @@ -0,0 +1,17 @@ +import scala.actors.Futures._ +import scala.actors.Actor._ + +object Test { + def main(args: Array[String]) { + val ft1 = future { reactWithin(1000) { + case _ => println("FAIL") + } } + + val ft2 = future { reactWithin(2000) { + case _ => println("FAIL") + } } + + val res = awaitAll(0, ft1, ft2) + println("OK") + } +} |