Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Main thread error with initialize function #346

Merged
merged 2 commits into from
Mar 9, 2022

Conversation

umangloria
Copy link
Contributor

It is mentioned in main MMKV package that [MMKV initializeMMKV:nil] function should always initialize in a main thread.
Reference: https://github.com/Tencent/MMKV#quick-tutorial-1

It is mentioned in main MMKV package that  [MMKV initializeMMKV:nil] function should always initialize in a main thread.
Reference: https://github.com/Tencent/MMKV#quick-tutorial-1
@mrousavy
Copy link
Owner

mrousavy commented Mar 8, 2022

Hi, thank you for your PR!

  1. Please indent the code correctly.
  2. Please use dispatch_sync instead of async

@umangloria
Copy link
Contributor Author

Changes done. Please check now.

@mrousavy
Copy link
Owner

mrousavy commented Mar 9, 2022

great, thank you LGTM!

@mrousavy mrousavy merged commit 314c526 into mrousavy:master Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants