How can I achieve thread safety in an async method?
I am trying to read the keychain but the documentation warns me about the following: SecItemCopyMatching blocks the calling thread, so it can cause your app’s UI to hang if called from the main thread. Instead, call SecItemCopyMatching from a background dispatch queue or async function. Source So I want to write an asynchronous method… Read More How can I achieve thread safety in an async method?