Class LibraryActivityTracker
- Namespace
- EncDotNet.S100.Collections.Library
- Assembly
- EncDotNet.S100.Collections.dll
Counts Library work that outlives a download batch's progress (issue #790):
a download goes on to re-index its source and open its datasets after the
batch's progress clears, and a load opens datasets after its call starts.
Each piece of work holds a scope from start to finish, so a host's "idle"
check (the await_library_idle MCP tool) can wait for all of it.
Thread-safe and UI-free, so the viewer and a headless host (#792) share it.
public sealed class LibraryActivityTracker
- Inheritance
-
LibraryActivityTracker
- Inherited Members
Properties
Active
Pieces of work still running.
public int Active { get; }
Property Value
PendingDatasets
Datasets the running work will open (still downloading or opening).
public int PendingDatasets { get; }
Property Value
Methods
Begin(int)
Marks a piece of work as running until the returned scope is disposed.
public IDisposable Begin(int datasets)
Parameters
datasetsintHow many datasets it will open (0 for work that opens none).