{"id":2804,"date":"2026-08-24T14:04:00","date_gmt":"2026-08-24T14:04:00","guid":{"rendered":"https:\/\/adjoe.io\/company\/engineer-blog\/swift-concurrency-await-runtime-trace-executor-hops\/"},"modified":"2026-11-24T18:27:58","modified_gmt":"2026-11-24T18:27:58","slug":"swift-concurrency-await-runtime-trace-executor-hops","status":"publish","type":"engineer_blog","link":"https:\/\/adjoe.io\/zh-cn\/company\/engineer-blog\/swift-concurrency-await-runtime-trace-executor-hops\/","title":{"rendered":"One await, two Actors: A runtime trace of Swift concurrency"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">adjoe\u2019s SDK runs on around 200 million devices per month. That\u2019s not a number we throw around lightly. It means every decision we make in the SDK, good or bad, scales to somewhere between \u201cminor tax on most phones\u201d and \u201cmeasurable drain on everyone\u2019s battery.\u201d\u00a0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The <a href=\"https:\/\/docs.adjoe.io\/rewarded-solutions\/\">adjoe SDK<\/a> also lives inside apps we don\u2019t own. A leading app publisher integrates it, ships it to their users, and we\u2019re along for the ride. Which means competing for threads with their UI code, their networking stack, and their analytics. We can\u2019t afford to be a bad guest.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this article, we\u2019ll walk through what actually happens at runtime when you use Swift Concurrency, specifically what <em>await<\/em> does, how executors switch, and why those details matter at scale.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Swift Concurrency Runtime Problem<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">At a surface level, Swift Concurrency seems simple. But under real production load, those runtime details start to shape performance, correctness, and how safely work moves across threads and actors.&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The actual work the SDK does is mostly async by nature:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>batching analytics events before uploading to reduce backend pressure,<\/li>\n\n\n\n<li>retrying failed requests with exponential backoff,&nbsp;<\/li>\n\n\n\n<li>jitter to avoid thundering herd problems during outages,&nbsp;<\/li>\n\n\n\n<li>buffering data locally when connectivity is poor, and flushing it later.&nbsp;&nbsp;<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">All of that is concurrent tasks that touch multiple layers: network, persistence, UI, and these must be cancellable when the host app\u2019s lifecycle says stop.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GCD can do this, but it offers no structural assistance.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Dispatch queues don\u2019t compose, cancellation is manual, and building a retry-with-backoff flow that cleans up properly on cancellation requires scaffolding (which isn\u2019t provided).&nbsp;&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Every DispatchQueue.asyncAfter used for retries is a potential leak.&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Swift Concurrency fits the problem better. Task hierarchies ensure cancellation is communicated to the whole retry-and-flush tree automatically; each task is still responsible for acting on it.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Actor isolation enforces which layer owns which state at compile time rather than convention. Cooperative scheduling means a network waits for the task rather than holding a thread.&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But using it correctly requires understanding what the runtime does at every await.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>When does it switch executors?<\/li>\n\n\n\n<li>When does it stay on the same one?&nbsp;<\/li>\n\n\n\n<li>What happens to the thread in between?<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">In an SDK running on 200M devices, those details matter. You write await. What happens next?&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">At that point, Swift operates in terms of executors, tasks, and continuation state.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The trace scenario&nbsp;<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Execution starts on @MainActor. The code awaits work on another actor (ImagePipeline). Execution returns to @MainActor.&nbsp;&nbsp;<\/p>\n\n\n\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">Swift<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-swift\">actor ImagePipeline {\n\n\u00a0\u00a0\u00a0\u00a0func decode(_ bytes: Data) async -&gt; UIImage { \/* heavy work *\/ }\n\n}\n\n@MainActor\n\nfinal class FeedViewModel {\n\n\u00a0\u00a0\u00a0\u00a0private let pipeline = ImagePipeline()\n\n\u00a0\u00a0\u00a0\u00a0private var thumbnail: UIImage?\n\n\u00a0\u00a0\u00a0\u00a0func refresh(_ bytes: Data) async {\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/\/ This is the boundary we are tracing\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0let image = await pipeline.decode(bytes)\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0self.thumbnail = image\n\n\u00a0\u00a0\u00a0\u00a0}\n\n}<\/code><\/pre>\n\t<\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"2352\" height=\"2018\" src=\"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/04\/mermaid-diagram-2026-04-23-123653.png\" alt=\"Swift Structured Concurrency, A Runtime trace - Swift Concurrency\" class=\"wp-image-2995\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">At that point, Swift operates in terms of executors, tasks, and continuation state. Each await is a chain of runtime decisions \u2014 and in a SDK running on 200M devices, every link in that chain has a cost. Here\u2019s what each one is.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:24px\">1. Executor identity is a concrete runtime value\u00a0<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before the runtime can decide whether to switch, it needs to know what \u201csame context\u201d means, and that\u2019s executor identity.&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Actor isolation isn\u2019t an abstract compile-time concept. At runtime, it\u2019s represented by executor references, not thread IDs. The ABI-level SerialExecutorRef (in include\/swift\/ABI\/Executor.h) holds two fields:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Identity \u2013&nbsp; a HeapObject *, the executor\u2019s unique identifier.&nbsp;<\/li>\n\n\n\n<li>Implementation \u2013 a uintptr_t whose high bits carry the SerialExecutor witness table pointer and whose low bits carry an ExecutorKind tag.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The ExecutorKind enum&nbsp;&nbsp;<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In ExecutionKind, each variation has a different cost at hop-check time:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u2013 <strong>Ordinary<\/strong> \u2013 the default. Hop checks are cheap pointer identity comparisons on the Identity field.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u2013 <strong>ComplexEquality <\/strong>\u2013 opt-in for executors that need custom same-context semantics. Calls isSameExclusiveExecutionContext instead of comparing pointers. This is slower and uncommon.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u2013 <strong>Immediate (Swift 6.2+)<\/strong> \u2013 used by Task.immediate. Marks an executor that cannot be switched to asynchronously; it runs synchronously on whatever thread calls it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Three values, stored in the low bits of Implementation:&nbsp;&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">C++<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-cpp\">enum class ExecutorKind : uintptr_t {\n\n\u00a0\u00a0\u00a0\u00a0Ordinary\u00a0 \u00a0 \u00a0 \u00a0 = 0b00, \/\/ Default; also used implicitly by Generic\/DefaultActor configs\n\n\u00a0\u00a0\u00a0\u00a0ComplexEquality = 0b01, \/\/ Invokes isSameExclusiveExecutionContext for hop checks\n\n\u00a0\u00a0\u00a0\u00a0Immediate \u00a0 \u00a0 \u00a0 = 0b10, \/\/ Used by Task.immediate; cannot participate in switching\n\n};<\/code><\/pre>\n\t<\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Factory configurations&nbsp;<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Four configurations cover the common cases. These aren\u2019t separate kind values; they\u2019re specific field combinations built on top of the enum:&nbsp;&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Configuration<\/strong><\/td><td><strong>Identity<\/strong><\/td><td><strong>Implementation<\/strong><\/td><td><strong>Notes<\/strong><\/td><\/tr><tr><td>generic()<\/td><td>nullptr<\/td><td>0<\/td><td>No specific executor; implicit Ordinary kind<\/td><\/tr><tr><td>forDefaultActor(actor)<\/td><td>actor pointer<\/td><td>0<\/td><td>Plain actor; implicit Ordinary kind<\/td><\/tr><tr><td>forOrdinary(id, wtable)<\/td><td>object pointer<\/td><td>wtable | 0b00<\/td><td>Custom SerialExecutor conformance<\/td><\/tr><tr><td>forComplexEquality(id, wtable)<\/td><td>object pointer<\/td><td>wtable | 0b01<\/td><td>Custom equality semantics<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Immediate (0b10) is produced by forSynchronousStart(), reserved for Task.immediate semantics. It marks an executor that cannot be switched to asynchronously.&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For most executors, hop checks are pointer identity comparisons on the Identity field.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ComplexEquality executors opt into a slower path that calls <em>isSameExclusiveExecutionContext<\/em> instead.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With executor identity defined, what does it attach to? Not threads \u2013 tasks.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:24px\">2. Tasks are not threads<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can\u2019t understand the hop decision without understanding what actually suspends \u2013 and it\u2019s not the thread. A task is a schedulable runtime object (Job) that carries resumption entry points.&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A thread is an OS execution resource. On suspend, Swift marks the task as suspended and clears the current-task association. The thread is not blocked:<\/p>\n\n\n\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">HTML<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-markup\">task-&gt;flagAsSuspendedOnContinuation(context);\n\n_swift_task_clearCurrent();<\/code><\/pre>\n\t<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The thread is free. The task might resume on a completely different thread. Think open orders at a restaurant versus cooks: how many tickets are open has nothing to do with how many people are in the kitchen.&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The task is now suspended. The thread is free. So who decides when and where the task resumes? That\u2019s the continuation state machine.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:24px\">3. await is a continuation state machine<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">An await compiles to a lock-free state machine driven by atomic CAS operations. The machine has to handle a genuine race: async work might finish before the caller suspends, or the caller might suspend before the work finishes. Both orderings happen in production, and both have to work correctly without a lock.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The state lives in ContinuationStatus (from include\/swift\/ABI\/MetadataValues.h):<\/p>\n\n\n\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">C++<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-cpp\">enum class ContinuationStatus : size_t {\n\n\u00a0\u00a0\u00a0\u00a0Pending\u00a0 = 0, \/\/ Not yet awaited or resumed\n\n\u00a0\u00a0\u00a0\u00a0Awaited\u00a0 = 1, \/\/ Awaited, not yet resumed\n\n\u00a0\u00a0\u00a0\u00a0Resumed\u00a0 = 2, \/\/ Resumed, not yet awaited\n\n};<\/code><\/pre>\n\t<\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"986\" height=\"748\" src=\"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/04\/mermaid-diagram-2026-04-23-124144.png\" alt=\"Swift Structured Concurrency, A Runtime trace - Swift Concurrency\" class=\"wp-image-2996\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">On initialization, the runtime records ResumeToExecutor. For an actor caller, this gets set to that actor\u2019s executor via an executor override \u2013 the Main Actor in our trace. Without one, it defaults to SerialExecutorRef::generic(). AwaitSynchronization starts as Pending.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">At the await site, the runtime does a CAS from Pending \u2192 Awaited.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Success means the task suspends, and _swift_task_clearCurrent() frees the thread.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But if the CAS instead observes Resumed, the async work finished before the caller even got to the suspend point, and the continuation proceeds immediately.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">No suspension occurs. The completing side does the reverse: it tries Pending \u2192 Resumed, and if it finds Awaited, the task is already parked, so it enqueues on ResumeToExecutor.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once the state machine commits to resuming, the runtime faces a new question: does it actually need to switch executors?&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:24px\">4. The hop decision: mustSwitchToRun<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before resuming, the runtime checks whether an executor switch is actually needed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There are two mustSwitchToRun functions in the source.&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The one used during task switching is a static function in stdlib\/public\/Concurrency\/Actor.cpp, and it takes more parameters than you might expect:<\/p>\n\n\n\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">C++<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-cpp\">static bool mustSwitchToRun(SerialExecutorRef currentSerialExecutor,\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0SerialExecutorRef newSerialExecutor,\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0TaskExecutorRef currentTaskExecutor,\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0TaskExecutorRef newTaskExecutor) {\n\n\u00a0\u00a0\u00a0\u00a0if (currentSerialExecutor.getIdentity() != newSerialExecutor.getIdentity()) {\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return true; \/\/ different isolation context\n\n\u00a0\u00a0\u00a0\u00a0}\n\n\u00a0\u00a0\u00a0\u00a0if (currentTaskExecutor.getIdentity() == newTaskExecutor.getIdentity())\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return false;\n\n\u00a0\u00a0\u00a0\u00a0if (currentTaskExecutor.isUndefined())\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0currentTaskExecutor = swift_getDefaultExecutor();\n\n\u00a0\u00a0\u00a0\u00a0if (newTaskExecutor.isUndefined())\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0newTaskExecutor = swift_getDefaultExecutor();\n\n\u00a0\u00a0\u00a0\u00a0return currentTaskExecutor.getIdentity() != newTaskExecutor.getIdentity();\n\n}<\/code><\/pre>\n\t<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The decision tree:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"904\" height=\"1593\" src=\"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/04\/mermaid-diagram-2026-04-23-124155.png\" alt=\"Swift Structured Concurrency, A Runtime trace - Swift Concurrency\" class=\"wp-image-2997\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Two independent things can require a hop: different serial executor identities (the obvious actor-boundary case), or a changed TaskExecutor preference on the task. That second one catches people off guard.&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can trigger a switch without crossing an actor boundary at all, just from a task carrying a different executor preference.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If neither fires, the runtime resumes inline via tail call. No enqueue, no scheduler round-trip. If either fires, it parks context on the task and moves to handoff or enqueue.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A switch is needed. Now the runtime tries to avoid the scheduler entirely.&nbsp;&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:24px\">5. Optimization: thread handoff<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When a switch is required, the runtime tries to skip the scheduler. Thread handoff passes the current OS thread directly to the new executor.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Three things must all be true at once (from Actor.cpp):&nbsp;<\/p>\n\n\n\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">C++<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-cpp\">if (currentTaskExecutor.isUndefined() &amp;&amp;\n\n\u00a0\u00a0\u00a0\u00a0canGiveUpThreadForSwitch(trackingInfo, currentExecutor) &amp;&amp;\n\n\u00a0\u00a0\u00a0\u00a0!shouldYieldThread()) {<\/code><\/pre>\n\t<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Diagram:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1135\" height=\"2560\" src=\"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/04\/mermaid-diagram-2026-04-23-124207-scaled.png\" alt=\"Swift Concurrency Runtime trace \" class=\"wp-image-2998\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The current task has no TaskExecutor preference. The current executor is willing to give up its thread. And the system hasn\u2019t asked this thread to yield.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When all three hold, tryAssumeThreadForSwitch runs on the destination. For a default actor, that means attempting to acquire the actor\u2019s lock.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Success<\/strong>: giveUpThreadForSwitch releases the old executor, and runOnAssumedThread runs as a tail call, keeping the stack flat.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Failure<\/strong>: the runtime falls through to async enqueue.&nbsp; When a handoff fails, there\u2019s no choice but to enqueue, and where the task ends up depends on what kind of executor it\u2019s targeting.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:24px\">6. Where does enqueued work go?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The handoff failed. The runtime clears the current task association and enqueues asynchronously. But \u201cenqueue\u201d isn\u2019t one thing. Where the job goes depends on the executor kind:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1931\" height=\"1668\" src=\"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/04\/mermaid-diagram-2026-04-23-124218.png\" alt=\"Swift Structured Concurrency, A Runtime trace - Swift Concurrency\" class=\"wp-image-2999\"\/><\/figure>\n\n\n\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">C++<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-cpp\">if (serialExecutorRef.isGeneric()) {\n\n\u00a0\u00a0\u00a0\u00a0\u00a0if (auto task = dyn_cast&lt;AsyncTask&gt;(job)) {\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0auto taskExecutorRef = task-&gt;getPreferredTaskExecutor();\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if (taskExecutorRef.isDefined()) {\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return _swift_task_enqueueOnTaskExecutor(...);\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}\n\n\u00a0\u00a0\u00a0\u00a0\u00a0}\n\n\u00a0\u00a0\u00a0\u00a0\u00a0return swift_task_enqueueGlobal(job);\n\n\u00a0}\n\n\u00a0if (serialExecutorRef.isDefaultActor()) {\n\n\u00a0\u00a0\u00a0\u00a0\u00a0return swift_defaultActor_enqueue(job, serialExecutorRef.getDefaultActor());\n\n\u00a0}<\/code><\/pre>\n\t<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;A \u201chop\u201d is not one mechanism. When you hear \u201cthe task hopped to another actor,\u201d the underlying operation could be a direct actor queue enqueue, a global pool submission, or a custom executor callback.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In our trace, the job needs to reach @MainActor. That\u2019s a specific executor with a specific route.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:24px\">7. Returning to @MainActor<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This is where the trace completes. ResumeToExecutor was set to the main actor\u2019s executor ref when the continuation was initialized. Now the runtime routes the job there.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The runtime calls <strong>_enqueueOnMain(job)<\/strong>, routing through <strong>swift_task_enqueueMainExecutor<\/strong> to <strong>MainActor.executor.enqueue(job)<\/strong>.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On Apple platforms that dispatch onto the main GCD queue.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The safety doesn\u2019t come from the main thread itself. It comes from the serial executor\u2019s exclusive-access contract. The main executor happens to use the main thread, but that\u2019s an implementation detail of this particular executor.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The isolation invariant is about executor identity, not thread affinity, something worth keeping in mind when working with custom executors, where the thread and the executor stop being the same thing.&nbsp;&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:24px\">8. What this means in practice<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Principle<\/strong><\/td><td><strong>Details<\/strong><\/td><\/tr><tr><td>Minimize hops<\/td><td>mustSwitchToRun fires on every identity change. Hop costs compound across a call graph.<\/td><\/tr><tr><td>Await doesn\u2019t always hop<\/td><td>Same-executor awaits the hit, the inline fast path, and costs almost nothing.<\/td><\/tr><tr><td>Don\u2019t block<\/td><td>The global pool is fixed-size. Block a thread, and you starve everything else sharing it.<\/td><\/tr><tr><td>TaskExecutor preferences matter<\/td><td>A changed TaskExecutor forces a hop even within the same actor.<\/td><\/tr><tr><td>Thread affinity is not isolation<\/td><td>The isolation guarantee is the executor identity. Which thread runs is an implementation detail of that executor, not the source of the guarantee.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:24px\">Endnote<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Understanding <strong>Swift Concurrency at the runtime level <\/strong>has shaped how we structure async work in the <a href=\"https:\/\/docs.adjoe.io\/rewarded-solutions\" type=\"link\" id=\"https:\/\/docs.adjoe.io\/rewarded-solutions\">Playtime SDK,<\/a> especially around cancellation, executor hops, and cross-actor coordination under load.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This has led to more predictable execution paths and safer concurrency patterns across network, persistence, and UI layers at scale.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Other teams can apply the same model to reduce unintended hops and improve structured concurrency behavior in production systems.&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For more engineering breakdowns like this, check out the <a href=\"https:\/\/adjoe.io\/company\/engineer-blog\/\" target=\"_blank\" rel=\"noreferrer noopener\">adjoe engineer\u2019s blog<\/a>.\u00a0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Source references<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">All references point to the Swift 6.3 main branch.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Executor identity and kinds: include\/swift\/ABI\/Executor.h<\/li>\n\n\n\n<li>Task lifecycle and continuation: include\/swift\/ABI\/Task.h<\/li>\n\n\n\n<li>Switch logic and mustSwitchToRun: stdlib\/public\/Concurrency\/Actor.cpp<\/li>\n\n\n\n<li>Main Actor implementation: stdlib\/public\/Concurrency\/MainActor.swift<\/li>\n\n\n\n<li>Continuation state enum: include\/swift\/ABI\/MetadataValues.h<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">All references point to the Swift 6.3 main branch as of March 2026.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:32px\">Build products that move markets<\/h2>\n\n\n<section class=\"l-section l-section--jobs-include is-light l-pt-lg l-pb-lg\" data-block=\"jobs-include\">\n\t<div class=\"l-wrapper\">\n\t\t<div class=\"jobs-include\">\n\t\t\t\n\t\t\t<div class=\"jobs-include__table-wrap\" tabindex=\"0\">\n\t\t\t\t<table id=\"jobs-include-table-1\" class=\"jobs-include__table\">\n\t\t\t\t\t<thead>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th scope=\"col\">Role<\/th>\n\t\t\t\t\t\t\t<th scope=\"col\">Team<\/th>\n\t\t\t\t\t\t\t<th scope=\"col\">Location<\/th>\n\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t<\/thead>\n\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<th scope=\"row\" data-label=\"Role\">\n\t\t\t\t\t\t\t\t\t<a class=\"jobs-include__role\" href=\"https:\/\/adjoe.io\/zh-cn\/careers\/open-positions\/58f1d2f2-5c8d-4b36-87e3-7a791eeab652\/\">\n\t\t\t\t\t\t\t\t\t\tFraud Operation Engineer (f\/m\/d)\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/th>\n\t\t\t\t\t\t\t\t<td data-label=\"Team\">\n\t\t\t\t\t\t\t\t\tAnti-Fraud Solutions\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t<td data-label=\"Location\">\n\t\t\t\t\t\t\t\t\tHamburg\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<th scope=\"row\" data-label=\"Role\">\n\t\t\t\t\t\t\t\t\t<a class=\"jobs-include__role\" href=\"https:\/\/adjoe.io\/zh-cn\/careers\/open-positions\/83fd0870-ddba-43b7-8489-f9ceccdb6da3\/\">\n\t\t\t\t\t\t\t\t\t\tTech Lead (f\/m\/d)\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/th>\n\t\t\t\t\t\t\t\t<td data-label=\"Team\">\n\t\t\t\t\t\t\t\t\tAnti-Fraud Solutions\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t<td data-label=\"Location\">\n\t\t\t\t\t\t\t\t\tHamburg\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t\t\t\t\t<\/tbody>\n\t\t\t\t<\/table>\n\t\t\t<\/div>\n\t\t<\/div>\n\t<\/div>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>adjoe\u2019s SDK runs on &#8230;<\/p>\n","protected":false},"author":59,"featured_media":6204,"template":"","engineer_blog_category":[74],"class_list":["post-2804","engineer_blog","type-engineer_blog","status-publish","has-post-thumbnail","hentry","engineer_blog_category-ios"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Swift Concurrency: One await, Two Actors Runtime Trace | 2027<\/title>\n<meta name=\"description\" content=\"Learn Swift Concurrency: how await works at runtime, executor switching, and performance insights from a 200 million-device SDK.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/adjoe.io\/zh-cn\/company\/engineer-blog\/swift-concurrency-await-runtime-trace-executor-hops\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Swift Concurrency: One await, Two Actors Runtime Trace | 2027\" \/>\n<meta property=\"og:description\" content=\"Learn Swift Concurrency: how await works at runtime, executor switching, and performance insights from a 200 million-device SDK.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/adjoe.io\/zh-cn\/company\/engineer-blog\/swift-concurrency-await-runtime-trace-executor-hops\/\" \/>\n<meta property=\"og:site_name\" content=\"adjoe | Making every interaction the start of lasting value\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-24T18:27:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/08\/11-One-await-Two-Actors_-A-Runtime-Trace-of-Swift-Concurrency.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1800\" \/>\n\t<meta property=\"og:image:height\" content=\"1190\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@twitter\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/zh-cn\\\/company\\\/engineer-blog\\\/swift-concurrency-await-runtime-trace-executor-hops\\\/\",\"url\":\"https:\\\/\\\/adjoe.io\\\/zh-cn\\\/company\\\/engineer-blog\\\/swift-concurrency-await-runtime-trace-executor-hops\\\/\",\"name\":\"Swift Concurrency: One await, Two Actors Runtime Trace | 2027\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/zh-cn\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/zh-cn\\\/company\\\/engineer-blog\\\/swift-concurrency-await-runtime-trace-executor-hops\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/zh-cn\\\/company\\\/engineer-blog\\\/swift-concurrency-await-runtime-trace-executor-hops\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/11-One-await-Two-Actors_-A-Runtime-Trace-of-Swift-Concurrency.png\",\"datePublished\":\"2026-08-24T14:04:00+00:00\",\"dateModified\":\"2026-11-24T18:27:58+00:00\",\"description\":\"Learn Swift Concurrency: how await works at runtime, executor switching, and performance insights from a 200 million-device SDK.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/zh-cn\\\/company\\\/engineer-blog\\\/swift-concurrency-await-runtime-trace-executor-hops\\\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/adjoe.io\\\/zh-cn\\\/company\\\/engineer-blog\\\/swift-concurrency-await-runtime-trace-executor-hops\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/zh-cn\\\/company\\\/engineer-blog\\\/swift-concurrency-await-runtime-trace-executor-hops\\\/#primaryimage\",\"url\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/11-One-await-Two-Actors_-A-Runtime-Trace-of-Swift-Concurrency.png\",\"contentUrl\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/11-One-await-Two-Actors_-A-Runtime-Trace-of-Swift-Concurrency.png\",\"width\":1800,\"height\":1190},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/zh-cn\\\/company\\\/engineer-blog\\\/swift-concurrency-await-runtime-trace-executor-hops\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/adjoe.io\\\/zh-cn\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"One await, two Actors: A runtime trace of Swift concurrency\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/zh-cn\\\/#website\",\"url\":\"https:\\\/\\\/adjoe.io\\\/zh-cn\\\/\",\"name\":\"adjoe | Making every interaction the start of lasting value\",\"description\":\"adjoe is a global tech company powering user acquisition, monetization and audience engagement across the app economy \u2013 making every interaction the start of lasting value.\",\"publisher\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/zh-cn\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/adjoe.io\\\/zh-cn\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/zh-cn\\\/#organization\",\"name\":\"adjoe | Making every interaction the start of lasting value\",\"url\":\"https:\\\/\\\/adjoe.io\\\/zh-cn\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/zh-cn\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/OG-img-1200x630-1.jpg\",\"contentUrl\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/OG-img-1200x630-1.jpg\",\"width\":1200,\"height\":630,\"caption\":\"adjoe | Making every interaction the start of lasting value\"},\"image\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/zh-cn\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/\",\"https:\\\/\\\/x.com\\\/twitter\",\"https:\\\/\\\/www.instagram.com\\\/adjoe.io\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/adjoe\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Swift Concurrency: One await, Two Actors Runtime Trace | 2027","description":"Learn Swift Concurrency: how await works at runtime, executor switching, and performance insights from a 200 million-device SDK.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/adjoe.io\/zh-cn\/company\/engineer-blog\/swift-concurrency-await-runtime-trace-executor-hops\/","og_locale":"zh_CN","og_type":"article","og_title":"Swift Concurrency: One await, Two Actors Runtime Trace | 2027","og_description":"Learn Swift Concurrency: how await works at runtime, executor switching, and performance insights from a 200 million-device SDK.","og_url":"https:\/\/adjoe.io\/zh-cn\/company\/engineer-blog\/swift-concurrency-await-runtime-trace-executor-hops\/","og_site_name":"adjoe | Making every interaction the start of lasting value","article_publisher":"https:\/\/www.facebook.com\/","article_modified_time":"2026-11-24T18:27:58+00:00","og_image":[{"width":1800,"height":1190,"url":"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/08\/11-One-await-Two-Actors_-A-Runtime-Trace-of-Swift-Concurrency.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@twitter","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/adjoe.io\/zh-cn\/company\/engineer-blog\/swift-concurrency-await-runtime-trace-executor-hops\/","url":"https:\/\/adjoe.io\/zh-cn\/company\/engineer-blog\/swift-concurrency-await-runtime-trace-executor-hops\/","name":"Swift Concurrency: One await, Two Actors Runtime Trace | 2027","isPartOf":{"@id":"https:\/\/adjoe.io\/zh-cn\/#website"},"primaryImageOfPage":{"@id":"https:\/\/adjoe.io\/zh-cn\/company\/engineer-blog\/swift-concurrency-await-runtime-trace-executor-hops\/#primaryimage"},"image":{"@id":"https:\/\/adjoe.io\/zh-cn\/company\/engineer-blog\/swift-concurrency-await-runtime-trace-executor-hops\/#primaryimage"},"thumbnailUrl":"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/08\/11-One-await-Two-Actors_-A-Runtime-Trace-of-Swift-Concurrency.png","datePublished":"2026-08-24T14:04:00+00:00","dateModified":"2026-11-24T18:27:58+00:00","description":"Learn Swift Concurrency: how await works at runtime, executor switching, and performance insights from a 200 million-device SDK.","breadcrumb":{"@id":"https:\/\/adjoe.io\/zh-cn\/company\/engineer-blog\/swift-concurrency-await-runtime-trace-executor-hops\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/adjoe.io\/zh-cn\/company\/engineer-blog\/swift-concurrency-await-runtime-trace-executor-hops\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/adjoe.io\/zh-cn\/company\/engineer-blog\/swift-concurrency-await-runtime-trace-executor-hops\/#primaryimage","url":"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/08\/11-One-await-Two-Actors_-A-Runtime-Trace-of-Swift-Concurrency.png","contentUrl":"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/08\/11-One-await-Two-Actors_-A-Runtime-Trace-of-Swift-Concurrency.png","width":1800,"height":1190},{"@type":"BreadcrumbList","@id":"https:\/\/adjoe.io\/zh-cn\/company\/engineer-blog\/swift-concurrency-await-runtime-trace-executor-hops\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/adjoe.io\/zh-cn\/"},{"@type":"ListItem","position":2,"name":"One await, two Actors: A runtime trace of Swift concurrency"}]},{"@type":"WebSite","@id":"https:\/\/adjoe.io\/zh-cn\/#website","url":"https:\/\/adjoe.io\/zh-cn\/","name":"adjoe | Making every interaction the start of lasting value","description":"adjoe is a global tech company powering user acquisition, monetization and audience engagement across the app economy \u2013 making every interaction the start of lasting value.","publisher":{"@id":"https:\/\/adjoe.io\/zh-cn\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/adjoe.io\/zh-cn\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Organization","@id":"https:\/\/adjoe.io\/zh-cn\/#organization","name":"adjoe | Making every interaction the start of lasting value","url":"https:\/\/adjoe.io\/zh-cn\/","logo":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/adjoe.io\/zh-cn\/#\/schema\/logo\/image\/","url":"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/11\/OG-img-1200x630-1.jpg","contentUrl":"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/11\/OG-img-1200x630-1.jpg","width":1200,"height":630,"caption":"adjoe | Making every interaction the start of lasting value"},"image":{"@id":"https:\/\/adjoe.io\/zh-cn\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/","https:\/\/x.com\/twitter","https:\/\/www.instagram.com\/adjoe.io\/","https:\/\/www.linkedin.com\/company\/adjoe"]}]}},"_links":{"self":[{"href":"https:\/\/adjoe.io\/zh-cn\/wp-json\/wp\/v2\/engineer_blog\/2804","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adjoe.io\/zh-cn\/wp-json\/wp\/v2\/engineer_blog"}],"about":[{"href":"https:\/\/adjoe.io\/zh-cn\/wp-json\/wp\/v2\/types\/engineer_blog"}],"author":[{"embeddable":true,"href":"https:\/\/adjoe.io\/zh-cn\/wp-json\/wp\/v2\/users\/59"}],"version-history":[{"count":5,"href":"https:\/\/adjoe.io\/zh-cn\/wp-json\/wp\/v2\/engineer_blog\/2804\/revisions"}],"predecessor-version":[{"id":5681,"href":"https:\/\/adjoe.io\/zh-cn\/wp-json\/wp\/v2\/engineer_blog\/2804\/revisions\/5681"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/adjoe.io\/zh-cn\/wp-json\/wp\/v2\/media\/6204"}],"wp:attachment":[{"href":"https:\/\/adjoe.io\/zh-cn\/wp-json\/wp\/v2\/media?parent=2804"}],"wp:term":[{"taxonomy":"engineer_blog_category","embeddable":true,"href":"https:\/\/adjoe.io\/zh-cn\/wp-json\/wp\/v2\/engineer_blog_category?post=2804"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}