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

Do not block calling queue with IO operations of SignalCache #101

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mrackwitz
Copy link
Contributor

SignalCache used to dispatch synchronously instead of asynchronously to its concurrent queue for the I/O operations of loading the cache and backing up the cache to file system which are typically done on app launch and when the app is sent to background respectively. Given how these functions are called, these would be typically blocking the main thread.

`SignalCache` used to dispatch synchronously instead of asynchronously to its concurrent queue for the IO operations of loading the cache and backing up the cache to file system which are typically done on app launch and when the app is sent to background respectively. Given how these functions are called, these would be typically blocking the main thread.
@mrackwitz
Copy link
Contributor Author

Actually, I just realized that the calling code in SignalManager uses an NSTimer to upload the first batch of events on initialization. So this does introduce a race condition as of now.

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.

1 participant