Skip to content

Complete URLSession cancellation immediately - #3

Merged
rohenaz merged 1 commit into
mainfrom
codex/urlsession-immediate-cancellation
Aug 31, 2026
Merged

Complete URLSession cancellation immediately#3
rohenaz merged 1 commit into
mainfrom
codex/urlsession-immediate-cancellation

Conversation

@rohenaz

@rohenaz rohenaz commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Summary

  • resume cancelled callers immediately instead of waiting for Foundation delegate scheduling
  • still cancel the underlying URLSession task
  • remove CI dependence on a delayed cancellation callback

Verification

  • focused cancellation test passed 20 consecutive runs (0.008–0.073s)
  • full swift test: 110 XCTest + 795 Swift Testing tests passed

This is the baseline fix for the unrelated failures currently blocking PR #1.

@rohenaz
rohenaz merged commit 6cd38d8 into main Aug 31, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant