You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: model a cancel racing the execution that replaces its token
Minting per execution made this interleaving reachable for the first time:
set_cancel used to run at most once per statement, so nothing could race a
replacement. Now every statement-producing call writes while sql_cancel reads
with no group lock, serialised only by the registry's own RwLock.
Which of the two tokens the canceller observes is deliberately not asserted --
both are correct, and the spec says so. What the model earns is that neither
thread panics, the downcast always succeeds, and the read never yields None for
a slot that has held a token throughout.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments