The starts its cleanup monitor immediately on construction, which makes unit testing awkward — the cleaner runs concurrently during tests even when mocked intervals are used.
Proposed addition:
Add and methods to :
- — clears the timer and stops the monitor loop
- — restarts the monitor (re-runs )
This lets tests pause the cleaner during assertions and resume it afterward. The constructor already calls if intervals are valid, and already exists in — it just needs a corresponding .
Files affected:
- — add method
- — update the interface
- — add integration tests for stop/start behavior
This is a small, self-contained change with an existing method () as a reference.
The starts its cleanup monitor immediately on construction, which makes unit testing awkward — the cleaner runs concurrently during tests even when mocked intervals are used.
Proposed addition:
Add and methods to :
This lets tests pause the cleaner during assertions and resume it afterward. The constructor already calls if intervals are valid, and already exists in — it just needs a corresponding .
Files affected:
This is a small, self-contained change with an existing method () as a reference.