Skip to content

Commit

Permalink
Update method docs
Browse files Browse the repository at this point in the history
  • Loading branch information
getBoolean committed Apr 14, 2024
1 parent 0849e6c commit 528e1b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:riverpod/riverpod.dart';
extension KeepAliveDurationExtension<T> on AutoDisposeRef<T> {
/// Keeps a [Ref] alive for a given [duration].
///
/// Any inflight requests will need to be cancelled separately.
/// Any inflight requests will need to be cancelled separately during [onDispose].
void keepAliveDuration([Duration duration = const Duration(seconds: 30)]) {
// When a provider is no-longer used, keep it in the cache for some time
final link = keepAlive();
Expand Down

0 comments on commit 528e1b0

Please sign in to comment.