未验证 提交 58b168dd 编写于 作者: S Sam Harwell 提交者: GitHub

Merge pull request #36126 from sharwell/valuetask-writes

GetWriteTaskAsync often completes synchronously
......@@ -120,7 +120,8 @@ internal partial class SQLitePersistentStorage
return;
// Local functions
async Task<(Task previousTask, TaskCompletionSource<int> taskCompletionSource)> GetWriteTaskAsync()
//[PerformanceSensitive("https://github.com/dotnet/roslyn/issues/36114", OftenCompletesSynchronously = true)]
async ValueTask<(Task previousTask, TaskCompletionSource<int> taskCompletionSource)> GetWriteTaskAsync()
{
// Have to acquire the semaphore. We're going to mutate the shared 'keyToWriteActions'
// and 'keyToWriteTask' collections.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册