Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Clarify some Docstrings #10

Merged
merged 1 commit into from
Dec 22, 2022
Merged

Clarify some Docstrings #10

merged 1 commit into from
Dec 22, 2022

Conversation

sergiosalvatore
Copy link
Contributor

The "Await" methods return when you get exactly the number of sleepers you're waiting for (not just more than that).

Copy link
Contributor

@dfinkel dfinkel left a comment

Choose a reason for hiding this comment

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

one trivial nit

@@ -252,7 +254,7 @@ func (f *Clock) removeWaiter(ch chan struct{}, abort bool) {

// SleepUntil blocks until either ctx expires or until arrives.
// Return value is false if context-cancellation/expiry prompted an
// early return
// early return.
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, I don't have a problem with adding a period here, but we should be consistent in the other doc-comments. (It appears that the others that were edited are currently missing periods)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure -- I've gone though and fixed all the docblocks to include periods at the end (I'd say most of them did to begin with).

The "Await" methods return when you get exactly the number of sleepers
you're waiting for (not just more than that).

Also, standardize sentence endings in all docblocks.
@sergiosalvatore sergiosalvatore merged commit 8b30819 into master Dec 22, 2022
@sergiosalvatore sergiosalvatore deleted the docblock-update branch December 22, 2022 15:49
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants