NewsjunkieSign in
  • All items
  • Explore

Sign in to follow sources.

Holly Borla23 Sept 2024

If you’ve been struggling with the default execution behavior of nonisolated async functions in the #SwiftLang concurrency model, I’d love your feedback on

forums.swift.org
[Pitch] Inherit isolation by default for async functions
Hello, Swift evolution! SE-0338 specifies that nonisolated async functions never run on an actor's executor. This design decision was made to prevent unnecessary serialization and contention for the actor by switching off of the actor to run the nonisolated async function, and any new tasks it creates that inherit isolation. The actor is then free to make forward progress on other work. This behavior is especially important for preventing unexpected overhang on the main actor. However, based o.…
hachyderm.io ↗

Sign in to like, save or reply.