mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 03:27:43 +00:00
d7af8ef846
The example was originally written without a `main`, and with an example using `Duration.operator *`. An update added a call to the example method from a new `main`, removed the usage of `Duration.operator *`, but did not remove the prose reference. - Remove the sentence mentioning that the duration can be const or computed. - Remove the intermediate `scheduleTimeout` method, move the `Timer` construction to `main`. This removes any consideration of `Duration` vs `int milliseconds` which had been added in an attempt make the docs more focused on `Timer` than `Duration`. R=lrn@google.com CoreLibraryReviewExempt:Documentation change. Change-Id: I26bb4e12910eb50cf5975b8a6573701a5a862070 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/330980 Reviewed-by: Lasse Nielsen <lrn@google.com> Commit-Queue: Nate Bosch <nbosch@google.com> |
||
---|---|---|
.. | ||
bin | ||
lib | ||
.gitignore | ||
api_readme.md | ||
BUILD.gn | ||
OWNERS |