apple / apple/swift-temporal-sdk
Adopt native `withTaskCancellationShield` once Swift 6.4 is available
Open
Beginner friendly
- Dominant language
- Swift
- Stars
- 315
- Forks
- 31
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 4
Description
We currently manually a task cancellation shield by using an unstructured Task. With Swift 6.4 there is native support for `withTaskCancellationShield`. We should update our underlying implementation to use that.
Contributor guide
Research direction
Locate the underlying implementation that manually creates an unstructured Task as a cancellation shield. Check Swift 6.4 availability, update that implementation to use the native support, and run the relevant existing tests to confirm cancellation behavior remains correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- api
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 66/100