Removed errornous method in Future
This commit is contained in:
parent
75ff6f3d37
commit
97e043b3fc
1 changed files with 2 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ object Futures {
|
|||
* ... // do stuff
|
||||
* }
|
||||
* </pre>
|
||||
*/
|
||||
*
|
||||
def future[T](timeout: Long)(body: => T): Future[T] = {
|
||||
val promise = new DefaultCompletableFuture[T](timeout)
|
||||
|
||||
|
|
@ -31,6 +31,7 @@ object Futures {
|
|||
}
|
||||
promise
|
||||
}
|
||||
*/
|
||||
|
||||
def awaitAll(futures: List[Future[_]]): Unit = futures.foreach(_.await)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue