We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Task.Run() のデリゲートで ValueTask を返している為:
ValueTask
Hosting.ConsoleHandler/Inasync.Hosting.ConsoleHandler/HostBuilderExtensions.cs
Lines 59 to 66 in 59bec06
Task を返すようにすれば解決:
Task
await Task.Run(() => { if (host is IAsyncDisposable asyncDisposable) { return asyncDisposable.DisposeAsync().AsTask(); } host.Dispose(); return Task.CompletedTask; }).ConfigureAwait(false);
The text was updated successfully, but these errors were encountered:
ついでに、CancelKeyPress による deadlock 対応はこうしたい:
await Task.Yield(); if (host is IAsyncDisposable asyncDisposable) { await asyncDisposable.DisposeAsync().ConfigureAwait(false); } else { host.Dispose(); }
Sorry, something went wrong.
1721213
in-async
No branches or pull requests
Task.Run() のデリゲートで
ValueTask
を返している為:Hosting.ConsoleHandler/Inasync.Hosting.ConsoleHandler/HostBuilderExtensions.cs
Lines 59 to 66 in 59bec06
Task
を返すようにすれば解決:The text was updated successfully, but these errors were encountered: