Swift 6 - Concurrency issue (Main Thread)
So as we know try await applicationContext.acquireToken(with: parameters)needs to be called from the Main Thread because it is doing some UI Stuff.
But when I try to do it on MainActor I get:
Non-sendable type 'MSALResult' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
Do you plan to make MSALResult sendable or how should we do it?
Have you tried using @preconcurrency ? .
No I am using withCheckedContinuation and I am switching to the main thread myself.
But I can't use the async await function.
@preconcurrency I didn't use @Veena11 :)
@Smponias , Could you share the code snippet where you make the call to acquireToken API, so we can get a clear picture of what you are doing ?
Closing as there is no response from reporter