mcollina / async-cache-dedupe

Async cache with dedupe support
MIT License
640 stars 40 forks source link

fix: emitting onError when defined cache fails #23

Closed ramonmulia closed 2 years ago

ramonmulia commented 2 years ago

When serialize throws an error onEmit wasn't being called. Putting try catch when add function is called we can call onError when it throws exception.

Closes #16