What is Nostr?
Matt Massicotte /
npub1xfk…wjhv
2024-04-17 10:01:05

Matt Massicotte on Nostr: MainActor.run is almost *never* the right solution. You want to define your isolation ...

MainActor.run is almost *never* the right solution. You want to define your isolation statically on the type, via a global actor annotation.

Dynamic isolation is an escape hatch, and it should set off alarm bells every time.
Author Public Key
npub1xfkfzq9r68c7e5xnt0u4jzexx0nvy239m6as32k8n4d0jqaaseeqskwjhv