Skip to content

Instantly share code, notes, and snippets.

@vigneshwaranr
Last active February 14, 2021 06:45
Show Gist options
  • Save vigneshwaranr/2ae65bd7f51decdbed10b1df49b19d7b to your computer and use it in GitHub Desktop.
Save vigneshwaranr/2ae65bd7f51decdbed10b1df49b19d7b to your computer and use it in GitHub Desktop.
2021-02-14 Blog post Scala Future
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