dart-lang / core

This repository is home to core Dart packages.
https://pub.dev/publishers/dart.dev
BSD 3-Clause "New" or "Revised" License
19 stars 7 forks source link

fix: async cache storing exception fixed #548

Open akmalviya03 opened 1 month ago

akmalviya03 commented 1 month ago

Earlier async cache was caching exceptions. With new changes in fetch method of AsyncCache class will no longer store exception. By default AsyncCache will store exception, by setting _canCacheException to false. It won't store exception.

Please refer dart-lang/core#366 for video demo of both issue and solution along with minimal reproducible code.