# \[Pitch\] Custom Actor Executors

**URL:** <https://forums.swift.org/t/pitch-custom-actor-executors/63135>\
**Category:** Pitches\
**Tags:** concurrency, actors\
**Created:** [February 15, 2023, 12:40pm UTC](https://forums.swift.org/t/pitch-custom-actor-executors/63135 "2023-02-15T12:40:26Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![DevAndArtist](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/devandartist/32/287_2.png) [@DevAndArtist](https://forums.swift.org/u/DevAndArtist)\
**Post date:** [February 15, 2023, 6:47pm UTC](https://forums.swift.org/t/pitch-custom-actor-executors/63135/8 "2023-02-15T18:47:52Z")

</div>

I think @John_McCall answered exactly this in another discussion thread yesterday:

> [@\`nonisolated lazy let\` on an actor](https://forums.swift.org/t/nonisolated-lazy-let-on-an-actor/63077/13):
>
> Custom actor executors will add an interesting twist to this. It's an immediate consequence of the feature that actors will be able to share a serial executor, which as far as the dynamic runtime is concerned means they share isolation. However, as long as the compiler doesn't understand that relationship statically, it will continue to enforce isolation between them, and you'll even have to `await` when calling between them (but it won't ever dynamically suspend). So whether or not two actors share a serial executor will not affect source and should just have performance implications. If we then add a way to make actor instances _statically_ share isolation, that would allow `await`s to be dropped, `Sendable` checks to be avoided, etc., basically making them the same isolation domain in all phases. But that's not an immediate consequence of adding custom actor executors.

* * *

> [@jrose](#):
>
> (Alternately, if it _can_ be backwards-deployed at all, then “neat” and also “how will that work for the introduction of new protocols and requirements?”)

Isn't that what the `@_alwaysEmitIntoClient` is for, or does it not work on whole types or protocols?

---

_[View the full topic](https://forums.swift.org/t/pitch-custom-actor-executors/63135)._
