Merge pull request #706 from nathanrobinson/patch-1
Update VSTHRD112.md to call `DisposeAsync` on `System.IAsyncDisposable`
This commit is contained in:
Коммит
14feb2c802
|
@ -49,7 +49,7 @@ class SomeClass : System.IAsyncDisposable, Microsoft.VisualStudio.Threading.IAsy
|
|||
{
|
||||
// Simply forward the call to the other DisposeAsync overload.
|
||||
System.IAsyncDisposable self = this;
|
||||
return self.Dispose().AsTask();
|
||||
return self.DisposeAsync().AsTask();
|
||||
}
|
||||
|
||||
ValueTask System.IAsyncDisposable.DisposeAsync()
|
||||
|
|
Загрузка…
Ссылка в новой задаче