We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is an implicit conversion from FiniteDuration to Timeout which allows this:
val myTimeout: Timeout = 4.seconds
Would be nice if there was the same for java.util.Duration so that this would work:
java.util.Duration
val myTimeout: Timeout = config.getDuration("my-app.timeout")
The text was updated successfully, but these errors were encountered:
for the Timeout from config case one can use the Java API (from Scala):
implicit val timeout: Timeout = Timeout.create(system.settings.config.getDuration("weather.routes.ask-timeout"))
Sorry, something went wrong.
This duration/timeout issue has been a nit of mine for years. I can take a look when we're ready.
typed/untyped system:
import scala.concurrent.duration._ implicit val timeout: Timeout = system.settings.config.getDuration("key").toMillis.millis
No branches or pull requests
There is an implicit conversion from FiniteDuration to Timeout which allows this:
Would be nice if there was the same for
java.util.Duration
so that this would work:The text was updated successfully, but these errors were encountered: