cocoaphony,
@cocoaphony@mastodon.social avatar

On the recent corner I've gotten myself into with Swift concurrency. I'm not sure how to deal with non-isolated protocol conformance on MainActor types when I don't control the protocol.

I'm open to "here's another way to implement the same thing that does work," but I'm a little nervous that this might be a more general problem that will come up more.

cc: @holly

https://forums.swift.org/t/types-that-must-be-mainactor-but-cannot-be-mainactor-due-to-protocol-conformance/70507

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • InstantRegret
  • ethstaker
  • magazineikmin
  • GTA5RPClips
  • rosin
  • modclub
  • Youngstown
  • ngwrru68w68
  • slotface
  • osvaldo12
  • kavyap
  • mdbf
  • thenastyranch
  • JUstTest
  • everett
  • cubers
  • cisconetworking
  • normalnudes
  • Durango
  • anitta
  • khanakhh
  • tacticalgear
  • tester
  • provamag3
  • megavids
  • Leos
  • lostlight
  • All magazines