提交 a75a1ad5 编写于 作者: C CyrusNajmabadi

Properly pass cancellation token along when spawning task.

上级 a2bfbbcb
......@@ -63,7 +63,7 @@ internal async void Search()
// Search each project with an independent threadpool task.
var searchTasks = _solution.Projects.Select(
p => Task.Run(() => SearchAsync(p))).ToArray();
p => Task.Run(() => SearchAsync(p), _cancellationToken)).ToArray();
await Task.WhenAll(searchTasks).ConfigureAwait(false);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册