Skip to content

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

Merged
merged 3 commits into from
Oct 29, 2020
Merged

Improve CancelPendingRead/Flush() docs #5033

merged 3 commits into from
Oct 29, 2020

Conversation

halter73
Copy link
Member

Summary

Better explain ReadResult.IsCanceled/FlushResult.IsCanceled, PipeReader.CancelPendingRead()/PipeWriter.CancelPendingFlush() and their relationship with each other.

Fixes dotnet/runtime#38739


## 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.
Copy link
Member Author

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?

Copy link
Contributor

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.

@opbld30
Copy link

opbld30 commented Oct 24, 2020

Docs Build status updates of commit 7f7c66b:

✅ Validation status: passed

File Status Preview URL Details
xml/System.IO.Pipelines/FlushResult.xml ✅Succeeded View
xml/System.IO.Pipelines/PipeReader.xml ✅Succeeded View
xml/System.IO.Pipelines/PipeWriter.xml ✅Succeeded View
xml/System.IO.Pipelines/ReadResult.xml ✅Succeeded View

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:

Copy link
Contributor

@carlossanlop carlossanlop left a 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.
Copy link
Contributor

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>
@opbld32
Copy link

opbld32 commented Oct 26, 2020

Docs Build status updates of commit ea4f338:

✅ Validation status: passed

File Status Preview URL Details
xml/System.IO.Pipelines/FlushResult.xml ✅Succeeded View
xml/System.IO.Pipelines/PipeReader.xml ✅Succeeded View
xml/System.IO.Pipelines/PipeWriter.xml ✅Succeeded View
xml/System.IO.Pipelines/ReadResult.xml ✅Succeeded View

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:

@halter73
Copy link
Member Author

@carlossanlop I think this is good to go.

@carlossanlop carlossanlop merged commit 7f46dbf into master Oct 29, 2020
@carlossanlop carlossanlop deleted the halter73/38739 branch October 29, 2020 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation needed:System.IO.Pipelines.PipeWriter.FlushAsync cancellation represenatation
6 participants