You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
namespaceSystem.Threading.Tasks{publicstaticclassTaskExtensions// already exists and is where we put the extension for IAsyncEnumerable{publicstaticConfiguredAsyncDisposableConfigureAwait(thisIAsyncDisposablesource,boolcontinueOnCapturedContext));
...}}namespaceSystem.Runtime.CompilerServices{publicreadonlystructConfiguredAsyncDisposable{publicConfiguredValueTaskAwaitableDisposeAsync();}}
The text was updated successfully, but these errors were encountered:
Hum, there's a compiler issue here too. await using currently only recognizes DisposeAsync that returns ValueTask. I'll loosen that to allow any awaitable.
Filed dotnet/roslyn#32707 (targeting preview3)
In https://github.com/dotnet/corefx/issues/32684, @jnm2 highlighted that in addition to ConfigureAwait on
IAsyncEnumerable<T>
(which we approved), we should also have it onIAsyncDisposable
, so that you can write:Thus, the proposal is to add:
The text was updated successfully, but these errors were encountered: