Skip to content

doc: improve doc and examples around task cancellation, drain and callbacks#115

Merged
rolinh merged 6 commits intomainfrom
pr/rolinh/doc-updates
Apr 2, 2026
Merged

doc: improve doc and examples around task cancellation, drain and callbacks#115
rolinh merged 6 commits intomainfrom
pr/rolinh/doc-updates

Conversation

@rolinh
Copy link
Copy Markdown
Member

@rolinh rolinh commented Apr 2, 2026

See commits for details.

Ref: #114 (comment)

rolinh added 5 commits April 2, 2026 10:07
Suggested-by: Alexandre Perrin <alex@isovalent.com>
Signed-off-by: Robin Hahling <code@hahling.ch>
Signed-off-by: Robin Hahling <code@hahling.ch>
Signed-off-by: Robin Hahling <code@hahling.ch>
Signed-off-by: Robin Hahling <code@hahling.ch>
Fix e29e14a

Signed-off-by: Robin Hahling <code@hahling.ch>
@rolinh rolinh requested a review from kaworu April 2, 2026 08:54
@rolinh rolinh added area/documentation Improvements or additions to documentation kind/enhancement This would improve or streamline existing functionality. labels Apr 2, 2026
Copy link
Copy Markdown
Member

@tklauser tklauser left a comment

Choose a reason for hiding this comment

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

While at it with updating docs, it might make sense to add godoc doc links to some of the exported API to improve navidation on pkg.go.dev.

@rolinh rolinh requested a review from tklauser April 2, 2026 09:41
Copy link
Copy Markdown
Member

@tklauser tklauser left a comment

Choose a reason for hiding this comment

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

A few godoc links to internal symbols could also be added to ease navigation, see suggested edits.

Content-wise, the changes look good to me. Thanks a lot for your effort to document this package in so much detail!

Comment thread workerpool.go Outdated
Comment thread workerpool.go Outdated
Comment thread workerpool.go Outdated
Comment thread workerpool.go Outdated
Comment thread workerpool.go Outdated
Comment thread workerpool.go Outdated
Comment thread workerpool.go Outdated
Comment thread workerpool.go Outdated
@rolinh rolinh force-pushed the pr/rolinh/doc-updates branch from 7de2a88 to 5f5c378 Compare April 2, 2026 12:16
Suggested-by: Tobias Klauser <tobias@cilium.io>
Signed-off-by: Robin Hahling <code@hahling.ch>
@rolinh rolinh force-pushed the pr/rolinh/doc-updates branch from 5f5c378 to e112510 Compare April 2, 2026 12:20
@rolinh
Copy link
Copy Markdown
Member Author

rolinh commented Apr 2, 2026

Good catch! It's interesting that godoclint catches the missing links for std lib references but not for local symbols. Anyways, all addressed now, thanks!

@rolinh rolinh merged commit 8427060 into main Apr 2, 2026
3 checks passed
@rolinh rolinh deleted the pr/rolinh/doc-updates branch April 2, 2026 12:23
@rolinh rolinh mentioned this pull request Apr 2, 2026
@kaworu
Copy link
Copy Markdown
Member

kaworu commented Apr 3, 2026

Thanks! I think it's a great addition to use the Submit context in the example!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/documentation Improvements or additions to documentation kind/enhancement This would improve or streamline existing functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants