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

SearchFiles jumps to main thread and blocks UI #164

Open
JeanetteMueller opened this issue Aug 19, 2020 · 0 comments
Open

SearchFiles jumps to main thread and blocks UI #164

JeanetteMueller opened this issue Aug 19, 2020 · 0 comments

Comments

@JeanetteMueller
Copy link

JeanetteMueller commented Aug 19, 2020

Inside of CloudFileProvider the Method searchFiles add an observer with block.
This Block runs in main thread. in my case it hase to check over 35.000 files and blocks the UI for 4-10 seconds.

the end of the block jumps back to background queue.

I moved the row

self.dispatch_queue.async {

to the beginning of the block and everything works fine.

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

No branches or pull requests

1 participant