Lzyct / media_scanner

Media scanner is library for scan new Media in Gallery
MIT License
5 stars 11 forks source link

loadMedia doesn't await properly #6

Open jj-gh opened 1 year ago

jj-gh commented 1 year ago

Even if you await loadMedia, it still seems to return even when it hasn't finished. It gets really noticeable when deleting a lot of media files (tested around 200) on a relatively slow device. I had to use await Future.delayed() after every loadMedia just to prevent it from bottlenecking.