提交 239b116e 编写于 作者: C Cyrus Najmabadi

Use comparer

上级 dba449c3
......@@ -123,10 +123,14 @@ internal partial class PackageInstallerService : AbstractDelayStartedService, IP
_packageUninstaller = packageUninstaller;
_packageSourceProvider = packageSourceProvider;
// Setup the work queue to allow us to hear about flurries of changes and then respond to them in batches
// every second. Note: we pass in EqualityComparer<...>.Default since we don't care about ordering, and
// since once we hear about changes to a project (or the whole solution), we don't need to keep track if we
// hear about the same thing in that batch window interval.
_workQueue = new AsyncBatchingWorkQueue<(bool solutionChanged, ProjectId? changedProject)>(
TimeSpan.FromSeconds(1),
this.ProcessWorkQueueAsync,
equalityComparer: null,
equalityComparer: EqualityComparer<(bool solutionChanged, ProjectId? changedProject)>.Default,
listenerProvider.GetListener(FeatureAttribute.PackageInstaller),
this.DisposalToken);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册