-
Couldn't load subscription status.
- Fork 1.4k
Add documentation for ZIOApp#gracefulShutdownTimeout
#9923
New issue
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the ZIOApp documentation by introducing a new section on graceful shutdown timeout behavior.
- Added a new documentation section "Graceful Shutdown Timeout" explaining the default behavior and how to override it.
- Included a Scala code snippet demonstrating how to set a shutdown timeout.
Comments suppressed due to low confidence (1)
docs/reference/core/zioapp.md:138
- The error message refers to 'shutdownTimeout' rather than 'gracefulShutdownTimeout'. Please update the method name in the message for consistency with the documented override.
Timed out waiting for ZIO application to shut down after 30 seconds. You can adjust your application's shutdown timeout by overriding the `shutdownTimeout` method
… clarify default behavior
Co-authored-by: kyri-petrou <[email protected]>
Co-authored-by: kyri-petrou <[email protected]>
|
@kyri-petrou looks like there is an unrelated test failure in CI. |
zio#9923) - Add comprehensive documentation for gracefulShutdownTimeout method - Improve note styling with concise, clear formatting - Document platform-specific behavior (JVM, Scala Native, Scala.js) - Add examples for common use cases (database, HTTP server) - Include best practices for timeout configuration and resource management
/claim #9913
Fixes #9913