# \#executor

**URL:** https://forums.swift.org/tag/executor/805.md

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

---

## [A question about Task Executor Preference](https://forums.swift.org/t/a-question-about-task-executor-preference/84626)

<div class="topic-metadata">

**Author:** [@George](https://forums.swift.org/u/George)\
**Replies:** 4\
**Last updated:** [February 8, 2026, 11:20pm UTC](https://forums.swift.org/t/a-question-about-task-executor-preference/84626 "2026-02-08T23:20:37Z")

</div>

I'm trying to understand how task executor preferences work, and have the following executor: final class TestExecutor: TaskExecutor { init(name: String) { self.name = name } let name: String func enqueue(…

---

## [Does a non-Sendable actor make sense?](https://forums.swift.org/t/does-a-non-sendable-actor-make-sense/84484)

<div class="topic-metadata">

**Author:** [@George](https://forums.swift.org/u/George)\
**Replies:** 0\
**Last updated:** [January 30, 2026, 6:33pm UTC](https://forums.swift.org/t/does-a-non-sendable-actor-make-sense/84484 "2026-01-30T18:33:16Z")

</div>

I have a situation where I think it makes sense to have a non-Sendable actor and was wondering if this sounds crazy. The fundamental thing I'm trying to achieve is the ability to use a manual executor to step through th…

---

## [Queries regarding lifetime of Job passed to executor](https://forums.swift.org/t/queries-regarding-lifetime-of-job-passed-to-executor/84128)

<div class="topic-metadata">

**Author:** [@soumyamahunt](https://forums.swift.org/u/soumyamahunt)\
**Replies:** 2\
**Last updated:** [January 14, 2026, 12:19pm UTC](https://forums.swift.org/t/queries-regarding-lifetime-of-job-passed-to-executor/84128 "2026-01-14T12:19:46Z")

</div>

Hi All. I have gone through the Job documentations: The consuming variant of Job is only available from iOS 17+, for earlier versions the Job being passed to executor is of type UnownedJob. Does the lifetime of th…

---

## [“Thread” vs. “Queue” vs. “Actor’s executor”](https://forums.swift.org/t/thread-vs-queue-vs-actor-s-executor/80601)

<div class="topic-metadata">

**Author:** [@nashysolutions](https://forums.swift.org/u/nashysolutions)\
**Replies:** 7\
**Last updated:** [June 24, 2025, 7:11am UTC](https://forums.swift.org/t/thread-vs-queue-vs-actor-s-executor/80601 "2025-06-24T07:11:16Z")

</div>

I had this conversation with ChatGPT and I don't trust the bot as a source of truth on this. My question: ...the word 'queue' in swift-concurrency ... is not the same as the word 'queue' used in the context of GCD ? Ch…

---

## [Back-porting TaskExecutor](https://forums.swift.org/t/back-porting-taskexecutor/78967)

<div class="topic-metadata">

**Author:** [@soumyamahunt](https://forums.swift.org/u/soumyamahunt)\
**Replies:** 0\
**Last updated:** [March 31, 2025, 9:12am UTC](https://forums.swift.org/t/back-porting-taskexecutor/78967 "2025-03-31T09:12:42Z")

</div>

While playing around with custom executors with following snippet: import Dispatch actor SampleActor { var counter: Int = 0 // let queue = DispatchSerialQueue(label: "actorqueue", target: .global(qos: .default))…

---

## [Is this runtime crash related to incorrect executor assumption / inheritence?](https://forums.swift.org/t/is-this-runtime-crash-related-to-incorrect-executor-assumption-inheritence/75568)

<div class="topic-metadata">

**Author:** [@Jon\_Reed](https://forums.swift.org/u/Jon_Reed)\
**Replies:** 0\
**Last updated:** [October 23, 2024, 4:09pm UTC](https://forums.swift.org/t/is-this-runtime-crash-related-to-incorrect-executor-assumption-inheritence/75568 "2024-10-23T16:09:54Z")

</div>

Recently I've run into a frustrating runtime crash that I believe may be related to a bug in the current Swift language version, but before I file a report I wanted to see if folks here could help check my understanding. …

---

## [Why No Data Race Warning in the non-isolated async function with non-sendable Type?](https://forums.swift.org/t/why-no-data-race-warning-in-the-non-isolated-async-function-with-non-sendable-type/72941)

<div class="topic-metadata">

**Author:** [@yudonlee](https://forums.swift.org/u/yudonlee)\
**Replies:** 10\
**Last updated:** [July 10, 2024, 3:11pm UTC](https://forums.swift.org/t/why-no-data-race-warning-in-the-non-isolated-async-function-with-non-sendable-type/72941 "2024-07-10T15:11:30Z")

</div>

public class StockExampleSite { private let korea: Korea init(korea: Korea) { self.korea = korea } internal func kospi() async -\> Double { // Warning because of passing non-sendable typ…

---

## [Task executor preference and deterministic scheduling?](https://forums.swift.org/t/task-executor-preference-and-deterministic-scheduling/72448)

<div class="topic-metadata">

**Author:** [@stephencelis](https://forums.swift.org/u/stephencelis)\
**Replies:** 5\
**Last updated:** [June 13, 2024, 9:45pm UTC](https://forums.swift.org/t/task-executor-preference-and-deterministic-scheduling/72448 "2024-06-13T21:45:13Z")

</div>

We've maintained a package to close some gaps in async/testing in Swift, and are pretty hopeful to deprecate many of them with this release! nonisolated(let) deprecates our UncheckedSendable type Mutex will hopefully d…

---

## [How to properly use custom executor on global actor?](https://forums.swift.org/t/how-to-properly-use-custom-executor-on-global-actor/71829)

<div class="topic-metadata">

**Author:** [@filiplazov](https://forums.swift.org/u/filiplazov)\
**Replies:** 9\
**Last updated:** [May 15, 2024, 8:27am UTC](https://forums.swift.org/t/how-to-properly-use-custom-executor-on-global-actor/71829 "2024-05-15T08:27:17Z")

</div>

Hi Everyone I am experimenting with creation of global actor MyGlobalActor with a custom serial executor that is supposedly dispatching / enqueueing tasks on a specific dispatch queue MyGlobalActorQueue. When I try to …

---

## [\[Accepted\] SE-0424: Custom isolation checking for \`SerialExecutor\`](https://forums.swift.org/t/accepted-se-0424-custom-isolation-checking-for-serialexecutor/70480)

<div class="topic-metadata">

**Author:** [@John\_McCall](https://forums.swift.org/u/John_McCall)\
**Replies:** 3\
**Last updated:** [March 7, 2024, 3:08pm UTC](https://forums.swift.org/t/accepted-se-0424-custom-isolation-checking-for-serialexecutor/70480 "2024-03-07T15:08:35Z")

</div>

Hello, Swift community. The review of SE-0424: Custom isolation checking for SerialExecutor ran from February 22nd through March 4th, 2024. Feedback was light but positive on the general idea. A question was raised du…

---

## [SE-0424: Custom isolation checking for \`SerialExecutor\`](https://forums.swift.org/t/se-0424-custom-isolation-checking-for-serialexecutor/70195)

<div class="topic-metadata">

**Author:** [@John\_McCall](https://forums.swift.org/u/John_McCall)\
**Replies:** 10\
**Last updated:** [March 6, 2024, 11:45pm UTC](https://forums.swift.org/t/se-0424-custom-isolation-checking-for-serialexecutor/70195 "2024-03-06T23:45:04Z")

</div>

Hi, Swift community. The review of SE-0424: Custom isolation checking for SerialExecutor begins now and runs through March 4th, 2024. Reviews are an important part of the Swift evolution process. All review feedback sh…

---

## [Are Tasks queued on the current actor even if their closure is marked with @MainActor?](https://forums.swift.org/t/are-tasks-queued-on-the-current-actor-even-if-their-closure-is-marked-with-mainactor/63869)

<div class="topic-metadata">

**Author:** [@rayaantaneja](https://forums.swift.org/u/rayaantaneja)\
**Replies:** 12\
**Last updated:** [March 22, 2023, 11:19am UTC](https://forums.swift.org/t/are-tasks-queued-on-the-current-actor-even-if-their-closure-is-marked-with-mainactor/63869 "2023-03-22T11:19:51Z")

</div>

If I create a task like this: actor SomeActor { func test() { Task { @MainActor in /\* … \*/ } } } Would this Task be first scheduled on the current actor (SomeActor) and then when it executes be enqueue…
