Refactor RealFileSystem to use WorkingDir, and ensure clean shutdown with FlushAll

This commit is contained in:
gmp
2026-06-05 11:42:39 -04:00
parent ac2e0e444d
commit 1324772215
6 changed files with 78 additions and 36 deletions
+7
View File
@@ -413,3 +413,10 @@ func (l *Logic) FlushAll() {
}
}
}
// Shutdown gracefully shuts down the logic goroutine and worker pool.
func (l *Logic) Shutdown() {
l.FlushAll()
l.Done()
l.workerPool.Stop()
}