Skip to content

Commit

Permalink
Merge pull request #88 from mio-19/patch-2
Browse files Browse the repository at this point in the history
make the code in BasicUsage.rst to compile
  • Loading branch information
rssh authored Aug 26, 2024
2 parents 95cc42d + 89aa012 commit b45cd1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/BasicUsage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ The minimal complete snippet looks as follows:
package com.example.myModule
import scala.concurrent.duration.DurationInt
import scala.concurrent.{Await, Future}
import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.duration.Duration
Expand All @@ -115,7 +116,7 @@ The minimal complete snippet looks as follows:
}
def main(args: Array[String]): Unit =
val f = Await.ready(greet(), Duration(1.seconds))
val f = Await.ready(greet(), 1.seconds)
f.failed.map { ex => println(ex.getMessage) }
Expand Down

0 comments on commit b45cd1e

Please sign in to comment.