diff options
author | Philipp Haller <hallerp@gmail.com> | 2013-11-08 15:59:04 +0100 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2013-11-12 20:15:49 +0100 |
commit | aac015a84c2d64ce485078a5a854bc7533e2fc7b (patch) | |
tree | a892f2af1bd0c67490dcb6bfdb92d2c46e976749 /test/files/run/t6448.scala | |
parent | 7ecfce1fb8d39275f082aaa3ad4dc0eee197391c (diff) | |
download | scala-aac015a84c2d64ce485078a5a854bc7533e2fc7b.tar.gz scala-aac015a84c2d64ce485078a5a854bc7533e2fc7b.tar.bz2 scala-aac015a84c2d64ce485078a5a854bc7533e2fc7b.zip |
SI-7958 Deprecate methods `future` and `promise` in the `scala.concurrent` package object
- The corresponding `apply` methods in the `Future` and `Promise` objects
should be used instead.
- Adjusted tests to use non-deprecated versions
- Fixed doc comments not to use deprecated methods
- Added comment about planned removal in 2.13.0
Diffstat (limited to 'test/files/run/t6448.scala')
-rw-r--r-- | test/files/run/t6448.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/t6448.scala b/test/files/run/t6448.scala index 4d1528e500..d0faaa9560 100644 --- a/test/files/run/t6448.scala +++ b/test/files/run/t6448.scala @@ -50,7 +50,7 @@ object Test { import concurrent.ExecutionContext.Implicits.global import concurrent.Await import concurrent.duration.Duration - val result = concurrent.future(1) collect { case x if f(x) => x} + val result = concurrent.Future(1) collect { case x if f(x) => x} Await.result(result, Duration.Inf) } |