Concurrency warning from async network call returning parsed json dictionary in actor method

There's a pitch up to solve this kind of problem: [Pitch] `transferring` isolation regions of parameter and result values

If that proposal is accepted, you'd be able to annotate that fetchJsonFrom returns a transferring result in the header, so that Swift understands the non-Sendable value can be treated as "disconnected", meaning that no other values are referencing it, so it's safe to pass over the isolation boundary.

2 Likes