Why does ScalaFutures does not implement the futureValue method using Await.result?

40 views
Skip to first unread message

Simão Martins

unread,
May 18, 2016, 11:00:55 AM5/18/16
to scalatest-users
The default implementation of the method futureValue in FutureConcept is using Thread.sleep to continuously query the future.

This behavior makes sense for Java Futures (especially for Java 7). However for Scala Await.result would be more suited.

Why isn't the FutureConcept for Scala implemented using Await.result? (The code is already there but it is uncommented)



Reply all
Reply to author
Forward
0 new messages