Files
Chronos/tests/Titano.Data.Tests/Sqlite
Claude 304ddf643d fix(data): never block the caller's thread and never lose a SQLite cancel
SQLite steps ran synchronously on the calling thread, so a repository
awaited on the WPF UI thread would freeze the window for the length of
the query. Blocking calls now continue on the thread pool.

A cancel that landed before sqlite3_step started the statement was lost
(SQLite clears the interrupt when no statement is running) and the query
ran to completion. Each connection now has a cancel flag polled by a
progress handler; it is cleared outside every interruptible operation so
a stale cancel cannot stop a later statement.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 11:04:21 +00:00
..