Skip to content

Conversation

@ldrygala
Copy link
Contributor

No description provided.

val token: String = Await.result(tokenF, Duration.Inf)

val numberF: Future[Int] = Future.successful(5)
val oddNumberF: Future[Int] = numberF.filter(_ % 2 != 0) // complete with 5
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These comments are not helping the code to make sense. I think they would be better ahead of the code they describe.

@ldrygala ldrygala force-pushed the scala-54-futures branch from f931d62 to d789b7a Compare June 5, 2020 19:15
@ashleyfrieze ashleyfrieze merged commit 3be6c93 into Baeldung:master Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants