Skip to content

Commit

Permalink
Merge pull request dart-archive/async#43 from dart-lang/libs
Browse files Browse the repository at this point in the history
Update for Dart 2.0 changes to Timer
  • Loading branch information
keertip authored Jan 2, 2018
2 parents dccc777 + 3b55493 commit 48c0678
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
3 changes: 0 additions & 3 deletions pkgs/async/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ language: dart
sudo: false
dart:
- dev
- stable
- 1.23.0
- 1.22.1
cache:
directories:
- $HOME/.pub-cache
Expand Down
4 changes: 4 additions & 0 deletions pkgs/async/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.0.2

* Add support for Dart 2.0 library changes to class `Timer`.

## 2.0.1

* Fix a fuzzy arrow type warning.
Expand Down
8 changes: 8 additions & 0 deletions pkgs/async/lib/src/restartable_timer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,12 @@ class RestartableTimer implements Timer {
void cancel() {
_timer.cancel();
}

@override
// TODO: Dart 2.0 requires this method to be implemented.
// See https://github.com/dart-lang/sdk/issues/31664
// ignore: override_on_non_overriding_getter
int get tick {
throw new UnimplementedError("tick");
}
}
4 changes: 2 additions & 2 deletions pkgs/async/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: async
version: 2.0.1
version: 2.0.2
author: Dart Team <misc@dartlang.org>
description: Utility functions and classes related to the 'dart:async' library.
homepage: https://www.github.com/dart-lang/async
environment:
sdk: ">=1.22.0 <2.0.0"
sdk: ">=2.0.0-dev.15.0 <2.0.0"
dependencies:
collection: "^1.5.0"
dev_dependencies:
Expand Down

0 comments on commit 48c0678

Please sign in to comment.