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.
[x] I’ve reviewed the contributor guide and applied the relevant portions to this PR.
Earlier async cache was caching exceptions. With new changes in
fetch
method ofAsyncCache
class will no longer store exception. By defaultAsyncCache
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.