Skip to content
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

Add docs for AsyncInterfaces #88432

Merged
merged 1 commit into from
Jul 5, 2023
Merged

Conversation

ericstj
Copy link
Member

@ericstj ericstj commented Jul 5, 2023

Fixes #87722
I just copied these from the shipping XML docs.

@ericstj ericstj requested review from carlossanlop and a team July 5, 2023 17:22
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jul 5, 2023
@ghost ghost assigned ericstj Jul 5, 2023
@@ -18,6 +18,8 @@ internal ConfiguredAsyncDisposable(IAsyncDisposable source, bool continueOnCaptu
_continueOnCapturedContext = continueOnCapturedContext;
}

/// <summary>Asynchronously releases the unmanaged resources used by the <see cref="T:System.Runtime.CompilerServices.ConfiguredAsyncDisposable" />.</summary>
/// <returns>A task that represents the asynchronous dispose operation.</returns>
Copy link
Member

Choose a reason for hiding this comment

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

It's not actually a task. But I see this matches what we have documented, so, fine for now.

Copy link
Member

Choose a reason for hiding this comment

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

I've seen other places where we say "A task that represents" when the returned value is the result of a ConfigureAwait.

For future reference, what description would you prefer to use in plain English for these cases? Would this work?:

"An awaitable, configured value task that represents..."

Or would you use something else?

Copy link
Member

@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.

Thanks, @ericstj!

@ericstj
Copy link
Member Author

ericstj commented Jul 5, 2023

Failure is known issue #35066

@ericstj ericstj merged commit f1d2be8 into dotnet:main Jul 5, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Aug 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Microsoft.Bcl.AsyncInterfaces is missing API documentation
3 participants