mastodon.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
The original server operated by the Mastodon gGmbH non-profit

Administered by:

Server stats:

351K
active users

Andy Finnell

Wait… in Swift 6 can I call an actor's instance method from the init without an `await`???

I guess that's a yes. It compiles and does not crash at runtime. Nice!

@andyfinnell Actor inits are extremely complex, but I don’t think anything has changed in Swift 6 here.

@mattiem The more I think about this specific instance, I suspect it was a Swift 5.10 compiler bug. Swift 5.10 also flagged the `await` with a warning (same one as 6), but when I removed it in Swift 5.10 it would then give me an error saying I can't call an actor isolated method from there.

@andyfinnell Totally possible. There were so many bugs in Swift 5.10.