Swift GlobalActor assumeIsolated like MainActor
I have the following GlobalActor
declared in Swift and I notice unlike MainActor
or even a local actor, there is no corresponding assumeIsolated
API available. Am I missing something?
How do I create a singleton in Swift 6?
I wrote this for a little CLI tool I’m making. It’s only important that it can receive & run its function calls immediately, because it’s for logging, where placing the lines in-order is important.