FileProvider icon indicating copy to clipboard operation
FileProvider copied to clipboard

SearchFiles jumps to main thread and blocks UI

Open JeanetteMueller opened this issue 5 years ago • 0 comments
trafficstars

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.

JeanetteMueller avatar Aug 19 '20 12:08 JeanetteMueller