1
0

_RemoveGlobalActorIsolation.swift 604 B

12345678910111213
  1. @globalActor
  2. public actor _GlobalActorToDisableGlobalActorInference {
  3. public static let shared = _GlobalActorToDisableGlobalActorInference()
  4. }
  5. /// Protocols that inherit from an actor-isolated protocol (such as View)
  6. /// and `_RemoveGlobalActorIsolation` end up without an inferred isolation.
  7. ///
  8. /// This is useful for protocols such as Shape which inherit from an
  9. /// actor-isolated protocol but don't themselves need the isolation for
  10. /// members that aren't a direct requirement of the isolated protocol.
  11. @_GlobalActorToDisableGlobalActorInference
  12. public protocol _RemoveGlobalActorIsolation {}