Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
Added cacheErrors documentation suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Nate Bosch <[email protected]>
  • Loading branch information
akmalviya03 and natebosch authored Apr 23, 2024
1 parent 043e1ee commit 5d18dd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/async_cache.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ class AsyncCache<T> {
/// The [duration] starts counting after the Future returned by [fetch]
/// completes, or after the Stream returned by `fetchStream` emits a done
/// event.
/// If [cacheErrors] is `false` the cache will be invalidated if the [Future]
/// returned by the callback completes as an error.
AsyncCache(Duration duration, {bool cacheErrors = true})
: _duration = duration,
_cacheErrors = cacheErrors;
Expand Down

0 comments on commit 5d18dd2

Please sign in to comment.