Commit Graph
1 Commits
Author SHA1 Message Date
AlexKucera 08005d322f refactor(library): extract search seam (#144)
CI / ci (push) Canceled after 0s
Mount the pure LibrarySearch.results(for:in:bodyOf:) core inside the
landed structured scan: the nonisolated async search() keeps its shape
(off-main, same task, .task(id: trimmedQuery) untouched) and now
delegates to the seam with PostStore.readBody as the injected reader;
the reader's per-piece Task.isCancelled guard preserves the sweep's
between-files cancellation of body reads. No behavior change vs
53c314d; the seam exists so the ranking logic is testable.
2026-11-03 22:17:40 +01:00