コード例 #1
0
        internal async Task VisitNodesAsync(ILibraryNodeVisitor visitor, CancellationToken ct = default(CancellationToken))
        {
            await _searching.WaitAsync();

            try {
                await Task.Run(() => _root.Visit(visitor, ct));

                ApplyUpdates(true);
            } finally {
                _searching.Release();
            }
        }
コード例 #2
0
ファイル: Library.cs プロジェクト: rkhjjs/VSGenero
 public void VisitNodes(ILibraryNodeVisitor visitor, CancellationToken ct = default(CancellationToken))
 {
     lock (this) {
         _root.Visit(visitor, ct);
     }
 }