[Pitch] Control default actor isolation inference

Would it make sense to allow for the default executor to be controlled more generally, so that it could be something other than the default global executor or MainActor? We also have a pitch to allow for hooking the implementation of these two actors dynamically as a single shared runtime resource, which may be necessary in some cases, but this sounds like an interesting mechanism that modules could use when they want the local syntactic benefits of sending their work to an alternative executor locally by default without affecting the entire runtime for the rest of the program.

1 Like