# \#concurrency

**URL:** https://forums.swift.org/tag/concurrency/17.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [How do we access UI controls from UI thread only?](https://forums.swift.org/t/how-do-we-access-ui-controls-from-ui-thread-only/91051)

<div class="topic-metadata">

**Author:** [@dima\_kozhinov](https://forums.swift.org/u/dima_kozhinov)\
**Replies:** 12\
**Last updated:** [November 25, 2026, 12:46am UTC](https://forums.swift.org/t/how-do-we-access-ui-controls-from-ui-thread-only/91051 "2026-11-25T00:46:34Z")

</div>

In Windows, UI controls are only allowed to be accessed from the same thread in which they were created. Swift Concurrency makes no guarantees about threads. Swift documentation says: An asynchronous function in Swift…

---

## [Does priority escalation make DispatchQueue's use global executor pool?](https://forums.swift.org/t/does-priority-escalation-make-dispatchqueues-use-global-executor-pool/91023)

<div class="topic-metadata">

**Author:** [@Nickolas\_Pohilets](https://forums.swift.org/u/Nickolas_Pohilets)\
**Replies:** 6\
**Last updated:** [November 24, 2026, 3:04pm UTC](https://forums.swift.org/t/does-priority-escalation-make-dispatchqueues-use-global-executor-pool/91023 "2026-11-24T15:04:47Z")

</div>

The code below, when running in a task of .medium priority deadlocks with qos \<= .default and works fine with higher priorities. When pausing deadlock in the debugger, I don't see any active jobs running on the queue. I…

---

## [Isolated conformance check is skipped for decode(\[User\].self) and sorted() under default MainActor isolation](https://forums.swift.org/t/isolated-conformance-check-is-skipped-for-decode-user-self-and-sorted-under-default-mainactor-isolation/90800)

<div class="topic-metadata">

**Author:** [@salari\_dev](https://forums.swift.org/u/salari_dev)\
**Replies:** 3\
**Last updated:** [November 23, 2026, 12:22pm UTC](https://forums.swift.org/t/isolated-conformance-check-is-skipped-for-decode-user-self-and-sorted-under-default-mainactor-isolation/90800 "2026-11-23T12:22:23Z")

</div>

With -default-isolation MainActor, the SE-0470 rule that an isolated conformance can only be used in its own isolation domain is enforced for decode(User.self, ...) and not enforced for decode(\[User\].self, ...). The same…

---

## [DepotKit: a type-safe, composable key-value store for Apple platforms](https://forums.swift.org/t/depotkit-a-type-safe-composable-key-value-store-for-apple-platforms/90181)

<div class="topic-metadata">

**Author:** [@FKREISE](https://forums.swift.org/u/FKREISE)\
**Replies:** 3\
**Last updated:** [November 20, 2026, 1:58am UTC](https://forums.swift.org/t/depotkit-a-type-safe-composable-key-value-store-for-apple-platforms/90181 "2026-11-20T01:58:30Z")

</div>

Hi everyone! We've just open-sourced DepotKit, a type-safe, composable key-value store for Apple platforms. My team at Mercedes-Benz built it, and it has stored most of the local data in the Mercedes-Benz iOS app for the…

---

## [\[Amend SE-0526\] Clarify Deadline interactions with Cancellation Shields](https://forums.swift.org/t/amend-se-0526-clarify-deadline-interactions-with-cancellation-shields/89970)

<div class="topic-metadata">

**Author:** [@ktoso](https://forums.swift.org/u/ktoso)\
**Replies:** 3\
**Last updated:** [November 17, 2026, 11:12pm UTC](https://forums.swift.org/t/amend-se-0526-clarify-deadline-interactions-with-cancellation-shields/89970 "2026-11-17T23:12:21Z")

</div>

Hello everyone, While working on an upcoming proposal (task cancellation scopes) myself and @FranzBusch have realized another interaction of deadlines and cancellation shields we'd like to clarify and codify. Since dead…

---

## [Internal global actor on public API not accepted in XCFrameworks](https://forums.swift.org/t/internal-global-actor-on-public-api-not-accepted-in-xcframeworks/85179)

<div class="topic-metadata">

**Author:** [@soumyamahunt](https://forums.swift.org/u/soumyamahunt)\
**Replies:** 1\
**Last updated:** [November 16, 2026, 6:30am UTC](https://forums.swift.org/t/internal-global-actor-on-public-api-not-accepted-in-xcframeworks/85179 "2026-11-16T06:30:14Z")

</div>

Currently if I try to use following code in FrameworkA for example: @globalActor actor MyGlobalActor: GlobalActor { static var shared: some Actor = MyGlobalActor() } @MyGlobalActor public func myFunc() { } fr…

---

## [Swift-ros2: a native Swift client library for ROS 2 (Apple platforms, Linux, Windows, Android)](https://forums.swift.org/t/swift-ros2-a-native-swift-client-library-for-ros-2-apple-platforms-linux-windows-android/90710)

<div class="topic-metadata">

**Author:** [@youtalk](https://forums.swift.org/u/youtalk)\
**Replies:** 0\
**Last updated:** [November 12, 2026, 11:28pm UTC](https://forums.swift.org/t/swift-ros2-a-native-swift-client-library-for-ros-2-apple-platforms-linux-windows-android/90710 "2026-11-12T23:28:03Z")

</div>

I was thrilled to see swift-ros2 featured in What's new in Swift: November 2026 Edition on Swift.org. Reading it is also how I learned about these forums, so I signed up to introduce the project properly and hear what Sw…

---

## [\[GSoC 2026\] Task and TaskGroup tracking for Swift Concurrency](https://forums.swift.org/t/gsoc-2026-task-and-taskgroup-tracking-for-swift-concurrency/89084)

<div class="topic-metadata">

**Author:** [@egekaya1](https://forums.swift.org/u/egekaya1)\
**Replies:** 4\
**Last updated:** [November 7, 2026, 12:14pm UTC](https://forums.swift.org/t/gsoc-2026-task-and-taskgroup-tracking-for-swift-concurrency/89084 "2026-11-07T12:14:20Z")

</div>

Hello everyone! :waving\_hand: My name is Ege Kaya, and I’m incredibly excited to share what I've been working on over the summer for my Google Summer of Code 2026 project alongside my fantastic mentors, @al45tair and @M…

---

## [\[Pitch\] Split continuation](https://forums.swift.org/t/pitch-split-continuation/90096)

<div class="topic-metadata">

**Author:** [@FranzBusch](https://forums.swift.org/u/FranzBusch)\
**Replies:** 13\
**Last updated:** [November 6, 2026, 9:57am UTC](https://forums.swift.org/t/pitch-split-continuation/90096 "2026-11-06T09:57:21Z")

</div>

Hi everyone, Here is a pitch to make working with continuations easier and enable a more performant way to resume them in cases where the current execution context can be donated: \[Concurrency\] Proposal for split contin…

---

## [Mutual TLS (mTLS) for iOS 26 with Swift Concurrency](https://forums.swift.org/t/mutual-tls-mtls-for-ios-26-with-swift-concurrency/90484)

<div class="topic-metadata">

**Author:** [@dheerendra](https://forums.swift.org/u/dheerendra)\
**Replies:** 3\
**Last updated:** [November 6, 2026, 4:03am UTC](https://forums.swift.org/t/mutual-tls-mtls-for-ios-26-with-swift-concurrency/90484 "2026-11-06T04:03:47Z")

</div>

Hi everyone :waving\_hand: I recently set up mutual TLS (client certificate authentication) in an iOS 26 app and wanted to share what I learned. It covers the steps, the code, and a few things that tripped me up. I hope …

---

## [Featherview: a native Mac image viewer in Swift 6 that opens a 4.6 GB PSB in about 2 seconds](https://forums.swift.org/t/featherview-a-native-mac-image-viewer-in-swift-6-that-opens-a-4-6-gb-psb-in-about-2-seconds/90411)

<div class="topic-metadata">

**Author:** [@mynetx](https://forums.swift.org/u/mynetx)\
**Replies:** 0\
**Last updated:** [November 3, 2026, 2:36pm UTC](https://forums.swift.org/t/featherview-a-native-mac-image-viewer-in-swift-6-that-opens-a-4-6-gb-psb-in-about-2-seconds/90411 "2026-11-03T14:36:42Z")

</div>

Hi everyone, I’d like to share Featherview, a free, open-source (MIT) image viewer for macOS, written in Swift 6 with strict concurrency, SwiftUI and AppKit. It’s made for flying through folders with the keyboard: open…

---

## [DeviceLookup: Apple device names, chips and screen sizes, without an enum case per model](https://forums.swift.org/t/devicelookup-apple-device-names-chips-and-screen-sizes-without-an-enum-case-per-model/90351)

<div class="topic-metadata">

**Author:** [@gabors](https://forums.swift.org/u/gabors)\
**Replies:** 1\
**Last updated:** [November 1, 2026, 10:24am UTC](https://forums.swift.org/t/devicelookup-apple-device-names-chips-and-screen-sizes-without-an-enum-case-per-model/90351 "2026-11-01T10:24:13Z")

</div>

I'd like to share DeviceLookup, a small package that turns a hardware model identifier into what people call the device, along with its release year, chip, screen and family. import DeviceLookup let device = Device.cur…

---

## [\[Pitch#2\] send and @oneway method calls](https://forums.swift.org/t/pitch-2-send-and-oneway-method-calls/90305)

<div class="topic-metadata">

**Author:** [@ktoso](https://forums.swift.org/u/ktoso)\
**Replies:** 20\
**Last updated:** [October 30, 2026, 6:16pm UTC](https://forums.swift.org/t/pitch-2-send-and-oneway-method-calls/90305 "2026-10-30T18:16:14Z")

</div>

This pitch supersedes what used to be a distributed-only feature, discussed over here: \[Pitch\] Distributed RemoteCall Semantics As we explored the design, we realized there is a bigger need in general Swift and Actors w…

---

## [Request for review: Preserve async-let typed errors (#91964)](https://forums.swift.org/t/request-for-review-preserve-async-let-typed-errors-91964/90322)

<div class="topic-metadata">

**Author:** [@bpluta](https://forums.swift.org/u/bpluta)\
**Replies:** 1\
**Last updated:** [October 29, 2026, 1:39am UTC](https://forums.swift.org/t/request-for-review-preserve-async-let-typed-errors-91964/90322 "2026-10-29T01:39:23Z")

</div>

Hi everyone! I'm a new contributor to the Swift project and I'm not entirely familiar with the usual PR review process or how long it typically takes to get feedback. I have grown increasingly frustrated by the fact th…

---

## [\[Pitch\] @Reasync and @ReasyncMembers macros](https://forums.swift.org/t/pitch-reasync-and-reasyncmembers-macros/86180)

<div class="topic-metadata">

**Author:** [@broken-circle](https://forums.swift.org/u/broken-circle)\
**Replies:** 41\
**Last updated:** [October 27, 2026, 9:11pm UTC](https://forums.swift.org/t/pitch-reasync-and-reasyncmembers-macros/86180 "2026-10-27T21:11:01Z")

</div>

Hello, Swift Evolution! This is a new pitch that would add @Reasync and @ReasyncMembers macros to the standard library, or to an official swiftlang-org package. The macros generate synchronous overloads of async functi…

---

## [Quiver: Statistics, linear algebra, and machine learning in plain Swift](https://forums.swift.org/t/quiver-statistics-linear-algebra-and-machine-learning-in-plain-swift/90300)

<div class="topic-metadata">

**Author:** [@waynewbishop](https://forums.swift.org/u/waynewbishop)\
**Replies:** 2\
**Last updated:** [October 27, 2026, 5:29pm UTC](https://forums.swift.org/t/quiver-statistics-linear-algebra-and-machine-learning-in-plain-swift/90300 "2026-10-27T17:29:00Z")

</div>

Hi everyone, I’d like to share Quiver, an open-source Swift package for statistics, linear algebra, and machine learning. I came to machine learning through courses built on Python, NumPy, scikit-learn, and Jupyter. Th…

---

## [Behavior of @ \_inheritActorContext in Global vs Instance Actors](https://forums.swift.org/t/behavior-of-inheritactorcontext-in-global-vs-instance-actors/90196)

<div class="topic-metadata">

**Author:** [@owenkealey](https://forums.swift.org/u/owenkealey)\
**Replies:** 7\
**Last updated:** [October 26, 2026, 9:05pm UTC](https://forums.swift.org/t/behavior-of-inheritactorcontext-in-global-vs-instance-actors/90196 "2026-10-26T21:05:54Z")

</div>

Follow up question after reading through Why is a Task closure defined in an Actor's method nonisolated? - #17 by NotTheNHK Calling foo on the below results in two prints for "MainActor". This makes sense to me -- foo i…

---

## [AdversarialKit (game tree search for Swift)](https://forums.swift.org/t/adversarialkit-game-tree-search-for-swift/90263)

<div class="topic-metadata">

**Author:** [@tkausch](https://forums.swift.org/u/tkausch)\
**Replies:** 0\
**Last updated:** [October 25, 2026, 3:34pm UTC](https://forums.swift.org/t/adversarialkit-game-tree-search-for-swift/90263 "2026-10-25T15:34:45Z")

</div>

AdversarialKit: game tree search for Swift (Alpha-Beta, MCTS, and an arena to compare them) Hi everyone, I'd like to share AdversarialKit, a small, pure-Swift package for building AI opponents in turn-based, two-player …

---

## [\[Pitch\] Property wrappers on let declarations with reference-backed setters](https://forums.swift.org/t/pitch-property-wrappers-on-let-declarations-with-reference-backed-setters/89569)

<div class="topic-metadata">

**Author:** [@thuyetngocluong](https://forums.swift.org/u/thuyetngocluong)\
**Replies:** 3\
**Last updated:** [October 20, 2026, 2:55am UTC](https://forums.swift.org/t/pitch-property-wrappers-on-let-declarations-with-reference-backed-setters/89569 "2026-10-20T02:55:03Z")

</div>

\[Pitch\] Property wrappers on let declarations with reference-backed setters Proposal: SE-NNNN Authors: ThuyetLN Review Manager: TBD Status: Awaiting implementation Related: \[Pitch\] Allow Property Wrappers on Let Declar…

---

## [\[Pitch\] Add \`sending\` to the return type of \`AsyncStream.Iterator.next()\`](https://forums.swift.org/t/pitch-add-sending-to-the-return-type-of-asyncstream-iterator-next/90123)

<div class="topic-metadata">

**Author:** [@clare](https://forums.swift.org/u/clare)\
**Replies:** 11\
**Last updated:** [October 19, 2026, 9:39am UTC](https://forums.swift.org/t/pitch-add-sending-to-the-return-type-of-asyncstream-iterator-next/90123 "2026-10-19T09:39:55Z")

</div>

Hi everyone! I wanted to pitch making the return values of AsyncStream.Interator.next(), AsyncStream.Continuation.yield(\_:), and their variants sending. I named only the most prominent one in the title for brevity. I'm …

---

## [Streaming chat completions in plain Swift with URLSession.bytes (no SDK)](https://forums.swift.org/t/streaming-chat-completions-in-plain-swift-with-urlsession-bytes-no-sdk/90133)

<div class="topic-metadata">

**Author:** [@apigoto2026](https://forums.swift.org/u/apigoto2026)\
**Replies:** 0\
**Last updated:** [October 18, 2026, 2:01pm UTC](https://forums.swift.org/t/streaming-chat-completions-in-plain-swift-with-urlsession-bytes-no-sdk/90133 "2026-10-18T14:01:22Z")

</div>

Most LLM APIs now speak the same "OpenAI-style" HTTP protocol. You don't need a package for it: URLSession.bytes(for:) plus AsyncLineSequence handles the server-sent-event stream in about 40 lines. Here is the version I …

---

## [Exploring Multicore Concurrency for Embedded Swift](https://forums.swift.org/t/exploring-multicore-concurrency-for-embedded-swift/87129)

<div class="topic-metadata">

**Author:** [@Gonzalo\_Larralde](https://forums.swift.org/u/Gonzalo_Larralde)\
**Replies:** 21\
**Last updated:** [October 16, 2026, 3:38am UTC](https://forums.swift.org/t/exploring-multicore-concurrency-for-embedded-swift/87129 "2026-10-16T03:38:01Z")

</div>

Hello :waving\_hand: I’ve been experimenting with running Swift Concurrency across multiple cores in Embedded Swift, specifically on RP2350-class microcontrollers. Today, Embedded Swift defaults to NoThreads. That works…

---

## [Revisiting reliable testing of concurrent code](https://forums.swift.org/t/revisiting-reliable-testing-of-concurrent-code/88910)

<div class="topic-metadata">

**Author:** [@erikbasargin](https://forums.swift.org/u/erikbasargin)\
**Replies:** 7\
**Last updated:** [October 15, 2026, 8:07pm UTC](https://forums.swift.org/t/revisiting-reliable-testing-of-concurrent-code/88910 "2026-10-15T20:07:36Z")

</div>

Hello everyone! I'd like to revisit the topic of reliably testing concurrent Swift code and gather your opinions. The original discussion is a few years old now, the follow-up on task executors is also no longer new, an…

---

## [Syntax for \`nonsiolated(nonsending)\` closure literal?](https://forums.swift.org/t/syntax-for-nonsiolated-nonsending-closure-literal/90038)

<div class="topic-metadata">

**Author:** [@Nickolas\_Pohilets](https://forums.swift.org/u/Nickolas_Pohilets)\
**Replies:** 3\
**Last updated:** [October 14, 2026, 5:22pm UTC](https://forums.swift.org/t/syntax-for-nonsiolated-nonsending-closure-literal/90038 "2026-10-14T17:22:52Z")

</div>

I'm trying to audit cases of nonisolated async functions in our codebase. I'm getting a warning for closure literals: await withTaskCancellationHandler { // warning: Feature 'NonisolatedNonsendingByDefault' will cause …

---

## [\[Pitch\] Task cancellation scopes](https://forums.swift.org/t/pitch-task-cancellation-scopes/89971)

<div class="topic-metadata">

**Author:** [@FranzBusch](https://forums.swift.org/u/FranzBusch)\
**Replies:** 10\
**Last updated:** [October 14, 2026, 1:37am UTC](https://forums.swift.org/t/pitch-task-cancellation-scopes/89971 "2026-10-14T01:37:08Z")

</div>

Hi everyone, @ktoso and I have written a pitch for what we call "task cancellation scopes". We have used these as an implementation detail of withDeadline but found multiple motivating use-cases that make us believe the…

---

## [Swift Concurrency - never main thread](https://forums.swift.org/t/swift-concurrency-never-main-thread/89978)

<div class="topic-metadata">

**Author:** [@Jon889](https://forums.swift.org/u/Jon889)\
**Replies:** 2\
**Last updated:** [October 10, 2026, 4:08pm UTC](https://forums.swift.org/t/swift-concurrency-never-main-thread/89978 "2026-10-10T16:08:21Z")

</div>

I have a function from a legacy library which asserts that it's not running on the main thread: func foo() { if Thread.isMainThread { assertionFailure("should not be called from the main thread") return } // .…

---

## [Concurrency-aware debugging with Embedded Swift platform runtimes](https://forums.swift.org/t/concurrency-aware-debugging-with-embedded-swift-platform-runtimes/89160)

<div class="topic-metadata">

**Author:** [@Gonzalo\_Larralde](https://forums.swift.org/u/Gonzalo_Larralde)\
**Replies:** 18\
**Last updated:** [October 7, 2026, 8:13pm UTC](https://forums.swift.org/t/concurrency-aware-debugging-with-embedded-swift-platform-runtimes/89160 "2026-10-07T20:13:20Z")

</div>

Hello all, Following the earlier discussion with @felipepiovezan in the Multicore Concurrency thread and his follow-up on swiftlang/swift#91047, I wanted to split Embedded Swift debugger support into a dedicated discuss…

---

## [I made Swift 6 prove the race was gone. ARC still used atomic retain/release](https://forums.swift.org/t/i-made-swift-6-prove-the-race-was-gone-arc-still-used-atomic-retain-release/89912)

<div class="topic-metadata">

**Author:** [@salari\_dev](https://forums.swift.org/u/salari_dev)\
**Replies:** 2\
**Last updated:** [October 6, 2026, 2:19pm UTC](https://forums.swift.org/t/i-made-swift-6-prove-the-race-was-gone-arc-still-used-atomic-retain-release/89912 "2026-10-06T14:19:25Z")

</div>

I ran a small compiler experiment around a question that is easy to conflate: If Swift 6 actor isolation rejects a race at the language level, does that also change ARC atomicity underneath? I compared the generated ou…

---

## [Actors conforming to protocols in default @MainActor isolation targets](https://forums.swift.org/t/actors-conforming-to-protocols-in-default-mainactor-isolation-targets/89821)

<div class="topic-metadata">

**Author:** [@mbrandonw](https://forums.swift.org/u/mbrandonw)\
**Replies:** 6\
**Last updated:** [September 30, 2026, 11:33pm UTC](https://forums.swift.org/t/actors-conforming-to-protocols-in-default-mainactor-isolation-targets/89821 "2026-09-30T23:33:28Z")

</div>

I've come across some behavior in default @MainActor isolation targets that I can't explain. Consider the following protocol defined in a @MainActor module, and an actor that conforms to the protocol: // Default main ac…

---

## [Why Task.detached isn't recommended](https://forums.swift.org/t/why-task-detached-isnt-recommended/89830)

<div class="topic-metadata">

**Author:** [@EngOmarElsayed](https://forums.swift.org/u/EngOmarElsayed)\
**Replies:** 5\
**Last updated:** [September 30, 2026, 2:27pm UTC](https://forums.swift.org/t/why-task-detached-isnt-recommended/89830 "2026-09-30T14:27:00Z")

</div>

I keep seeing \`Task.detached\` used as a general way to "get off the main thread", and I've been told it's usually the wrong tool. I really want to know why ?

[Next page](https://forums.swift.org/tag/concurrency/17.md?match_all_tags=true&page=1&tags%5B%5D=concurrency)
