-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add docs for AsyncInterfaces #88432
Conversation
@@ -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> |
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.
It's not actually a task. But I see this matches what we have documented, so, fine for now.
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.
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?
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.
Thanks, @ericstj!
Failure is known issue #35066 |
Fixes #87722
I just copied these from the shipping XML docs.