Pitch: `withIsolation` convenience methods for Actors

but why use isolated on the actor itself, when isolated can be added to the signature of the actor-external function itself?

public
func f<A>(_ a:A) async where A:Actor
{
    await 
    {
        (a:isolated A) in 

        // closure body goes here
    } (a)
}
2 Likes