mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 16:55:08 +00:00
[doc/async] Remove excessive statement from Timer.periodic() documentation
Bug:#54423 Change-Id: I483d51861390cd4c5def02295a976db4363b84bb CoreLibraryReviewExempt: Documentation-only change Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/342762 Reviewed-by: Lasse Nielsen <lrn@google.com> Reviewed-by: Alexander Thomas <athom@google.com> Commit-Queue: Alexander Thomas <athom@google.com>
This commit is contained in:
parent
3fa9f798ab
commit
77886bf641
|
@ -10,7 +10,7 @@ part of dart.async;
|
|||
/// When the timer reaches 0, the timer invokes the specified callback function.
|
||||
/// Use a periodic timer to repeatedly count down the same interval.
|
||||
///
|
||||
/// A negative duration is treated the same as a duration of 0.
|
||||
/// A negative duration is treated the same as [Duration.zero].
|
||||
/// If the duration is statically known to be 0, consider using [run].
|
||||
///
|
||||
/// ```dart
|
||||
|
@ -64,7 +64,7 @@ abstract interface class Timer {
|
|||
/// when the previous callback started, or when the previous callback was
|
||||
/// scheduled for - even if the actual callback was delayed.
|
||||
///
|
||||
/// [duration] must a non-negative [Duration].
|
||||
/// A negative [duration] is treated the same as [Duration.zero].
|
||||
///
|
||||
/// Example:
|
||||
/// ```dart
|
||||
|
|
Loading…
Reference in a new issue