terikon / cordova-plugin-photo-library

Maintainer needed. Please contact if you're using this library in your project
MIT License
149 stars 295 forks source link

Way to cancel getLibrary process? #201

Open Hanzofm opened 2 years ago

Hanzofm commented 2 years ago

Hi,

Is there any way to cancel the getLibrary process? On large libraries if yo do multiple getLibrary process without cancel the previous process the plugin not work properly.

I have already tried to unsubscribe to getLibrary observable but the process continues

Thanks

vlad909 commented 2 years ago

@Hanzofm hi. I find is very strange solution. calling "throw Error('stop')" will stop process :dango: