-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Improve CancelPendingRead/Flush() docs #5033
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
|
||
## Remarks | ||
|
||
The canceled <xref:System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)> operation returns a <xref:System.IO.Pipelines.ReadResult> where <xref:System.IO.Pipelines.ReadResult.IsCanceled> is true. |
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.
How do I verify that I didn't mess up the syntax or references locally before submitting a PR?
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.
- Go to this PR's CI section.
- Expand the "Show all checks" link.
- Look at the OpenPublishing.Build leg - It should say "Validation status: passed". Not "warnings" or "errors".
- Click on the "Details" link.
- In the new window, scroll down to the "Validated files" table.
- For any of the files you modified in your PR, which will show up in the table, click on the "View" link under the "Preview URL" column.
- You'll be able to see your changes as they would look in MS Docs (this is just a preview site).
For this particular API, this is the preview page.
Docs Build status updates of commit 7f7c66b: ✅ Validation status: passed
For more details, please refer to the build report. Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report. For any questions, please:
|
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.
Looking good, thanks for making these improvements. I left a few suggestions for you to consider.
|
||
## Remarks | ||
|
||
The canceled <xref:System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)> operation returns a <xref:System.IO.Pipelines.ReadResult> where <xref:System.IO.Pipelines.ReadResult.IsCanceled> is true. |
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.
- Go to this PR's CI section.
- Expand the "Show all checks" link.
- Look at the OpenPublishing.Build leg - It should say "Validation status: passed". Not "warnings" or "errors".
- Click on the "Details" link.
- In the new window, scroll down to the "Validated files" table.
- For any of the files you modified in your PR, which will show up in the table, click on the "View" link under the "Preview URL" column.
- You'll be able to see your changes as they would look in MS Docs (this is just a preview site).
For this particular API, this is the preview page.
Co-authored-by: Carlos Sanchez <1175054+carlossanlop@users.noreply.github.com>
Docs Build status updates of commit ea4f338: ✅ Validation status: passed
For more details, please refer to the build report. Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report. For any questions, please:
|
@carlossanlop I think this is good to go. |
Summary
Better explain ReadResult.IsCanceled/FlushResult.IsCanceled, PipeReader.CancelPendingRead()/PipeWriter.CancelPendingFlush() and their relationship with each other.
Fixes dotnet/runtime#38739