Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Issue 8992007: Make the repeating argument to timers optional. (Closed)

Created:
9 years ago by Mads Ager (google)
Modified:
9 years ago
Reviewers:
Søren Gjesse
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Make the repeating argument to timers optional. R=sgjesse@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=2577

Patch Set 1 #

Total comments: 1

Patch Set 2 : Address review comments. #

Total comments: 2

Patch Set 3 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -45 lines) Patch
M client/testing/unittest/unittest_vm.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/chunked_stream.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/bin/file_impl.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/bin/string_stream.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/bin/timer.dart View 1 1 chunk +10 lines, -5 lines 0 comments Download
M runtime/bin/timer_impl.dart View 1 2 2 chunks +11 lines, -3 lines 0 comments Download
M samples/actors/core/actors-term.dart View 1 chunk +1 line, -1 line 0 comments Download
M samples/chat/chat_server.dart View 1 chunk +1 line, -1 line 0 comments Download
M samples/chat/chat_server_lib.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M samples/chat/http_impl.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M samples/socket/SocketExample.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
M tests/standalone/src/MultipleTimerTest.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M tests/standalone/src/SocketCloseTest.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M tests/standalone/src/TimerCancel1Test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/standalone/src/TimerCancel2Test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/src/TimerCancelTest.dart View 1 1 chunk +4 lines, -4 lines 0 comments Download
M tests/standalone/src/TimerRepeatTest.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/src/TimerTest.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tools/testing/dart/test_runner.dart View 2 chunks +2 lines, -4 lines 0 comments Download
M tools/testing/dart/test_suite.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Mads Ager (google)
9 years ago (2011-12-19 12:02:52 UTC) #1
Søren Gjesse
This is related to issue 286, http://code.google.com/p/dart/issues/detail?id=268. I think we should consider removing the repeating ...
9 years ago (2011-12-19 12:10:45 UTC) #2
Mads Ager (google)
I agree. Replaced with a named constructor. Please take another look.
9 years ago (2011-12-19 12:29:33 UTC) #3
Søren Gjesse
lgtm http://codereview.chromium.org/8992007/diff/3001/runtime/bin/timer_impl.dart File runtime/bin/timer_impl.dart (right): http://codereview.chromium.org/8992007/diff/3001/runtime/bin/timer_impl.dart#newcode17 runtime/bin/timer_impl.dart:17: static Timer createTimer(void callback(Timer timer), _createTimer?
9 years ago (2011-12-19 12:31:36 UTC) #4
Mads Ager (google)
9 years ago (2011-12-19 12:34:37 UTC) #5
http://codereview.chromium.org/8992007/diff/3001/runtime/bin/timer_impl.dart
File runtime/bin/timer_impl.dart (right):

http://codereview.chromium.org/8992007/diff/3001/runtime/bin/timer_impl.dart#...
runtime/bin/timer_impl.dart:17: static Timer createTimer(void callback(Timer
timer),
On 2011/12/19 12:31:36, Søren Gjesse wrote:
> _createTimer?

Done.

Powered by Google App Engine
This is Rietveld 408576698