Last active
February 14, 2021 06:45
-
-
Save vigneshwaranr/2ae65bd7f51decdbed10b1df49b19d7b to your computer and use it in GitHub Desktop.
2021-02-14 Blog post Scala Future
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scala.concurrent.duration.Duration | |
import scala.concurrent.{Await, Future} | |
val future = someFutureJob() | |
// NOO :( | |
val value = Await.result(future, Duration.Inf) | |
operate(value) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment