-
-
Notifications
You must be signed in to change notification settings - Fork 215
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
Improve scaladocs of eventually
#1287
Conversation
WalkthroughThe changes made to the Changes
Poem
Warning Tool Failures:Tool Failure Count:Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (2)
common/shared/src/main/scala/org/specs2/execute/EventuallyResults.scala (2)
43-43
: Enhance documentation clarity for consistency.The return documentation could be more specific about the behavior, matching the detail level of other methods.
- * a matcher that will retry the nested matcher a given number of times with a given duration of sleep in between + * a matcher that will retry the nested matcher up to the specified number of times, with a fixed sleep duration between attempts
43-50
: Consider standardizing documentation terminology across methods.While the documentation is accurate, consider using consistent terminology across all
eventually
method variants. For example, standardize the use of terms like "matcher" and "retry" in all method documentation.Suggested pattern for all methods:
/** @return * retries the nested matcher up to [X] times, with [Y] sleep duration between attempts */
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
common/shared/src/main/scala/org/specs2/execute/EventuallyResults.scala
(1 hunks)
🔇 Additional comments (1)
common/shared/src/main/scala/org/specs2/execute/EventuallyResults.scala (1)
48-50
: Documentation improvements align perfectly with PR objectives.
The updated documentation successfully addresses both key objectives:
- Clarifies the retry behavior
- Explicitly states the default sleep duration (100ms)
This change significantly improves clarity for users, especially those relying on IDE documentation.
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.
Excellent, thank you @donce!
Few improvements/fixes:
eventually()
:So, to understand the default, I went through many steps and ended up having to find the implementation in the GitHub 😅
Summary by CodeRabbit
eventually
methods, clarifying their purpose and behavior.