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

Issue 1870543004: Add typed wrapper functions to delegate classes. (Closed)

Created:
4 years, 8 months ago by nweiz
Modified:
4 years, 8 months ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/async.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add typed wrapper functions to delegate classes. These mirror the methods in the the collection package, and serve a similar purpose of safely casting generic objects when the user is confident that the actual object's values are more specific than the static type. R=floitsch@google.com, lrn@google.com Committed: https://github.com/dart-lang/async/commit/641e1954b4c915611e5ea9d9ab871748443253ff

Patch Set 1 #

Total comments: 20

Patch Set 2 : Code review changes #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+1223 lines, -22 lines) Patch
M CHANGELOG.md View 1 chunk +17 lines, -8 lines 0 comments Download
M lib/async.dart View 1 chunk +1 line, -0 lines 0 comments Download
M lib/src/delegate/event_sink.dart View 1 chunk +12 lines, -1 line 4 comments Download
M lib/src/delegate/future.dart View 1 3 chunks +12 lines, -1 line 4 comments Download
M lib/src/delegate/sink.dart View 1 chunk +12 lines, -2 lines 0 comments Download
A lib/src/delegate/stream.dart View 1 1 chunk +28 lines, -0 lines 0 comments Download
M lib/src/delegate/stream_consumer.dart View 1 chunk +14 lines, -2 lines 0 comments Download
M lib/src/delegate/stream_sink.dart View 1 chunk +12 lines, -2 lines 0 comments Download
M lib/src/delegate/stream_subscription.dart View 1 2 chunks +16 lines, -1 line 0 comments Download
M lib/src/lazy_stream.dart View 2 chunks +9 lines, -3 lines 2 comments Download
M lib/src/subscription_stream.dart View 1 chunk +1 line, -1 line 0 comments Download
A lib/src/typed/future.dart View 1 chunk +25 lines, -0 lines 0 comments Download
A lib/src/typed/stream.dart View 1 chunk +136 lines, -0 lines 0 comments Download
A lib/src/typed/stream_subscription.dart View 1 chunk +36 lines, -0 lines 0 comments Download
A lib/src/utils.dart View 1 chunk +7 lines, -0 lines 0 comments Download
M pubspec.yaml View 1 chunk +3 lines, -1 line 0 comments Download
A test/typed_wrapper/future_test.dart View 1 chunk +117 lines, -0 lines 0 comments Download
A test/typed_wrapper/stream_subscription_test.dart View 1 chunk +144 lines, -0 lines 0 comments Download
A test/typed_wrapper/stream_test.dart View 1 chunk +598 lines, -0 lines 0 comments Download
M test/utils.dart View 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (2 generated)
nweiz
4 years, 8 months ago (2016-04-08 00:03:33 UTC) #1
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/1870543004/diff/1/lib/src/delegate/future.dart File lib/src/delegate/future.dart (right): https://codereview.chromium.org/1870543004/diff/1/lib/src/delegate/future.dart#newcode16 lib/src/delegate/future.dart:16: /// Creates a wrapper that asserts the types ...
4 years, 8 months ago (2016-04-08 09:20:29 UTC) #2
Lasse Reichstein Nielsen
4 years, 8 months ago (2016-04-08 09:20:42 UTC) #4
Lasse Reichstein Nielsen
4 years, 8 months ago (2016-04-08 09:20:43 UTC) #5
nweiz
Code review changes
4 years, 8 months ago (2016-04-11 20:26:10 UTC) #6
nweiz
https://codereview.chromium.org/1870543004/diff/1/lib/src/delegate/future.dart File lib/src/delegate/future.dart (right): https://codereview.chromium.org/1870543004/diff/1/lib/src/delegate/future.dart#newcode16 lib/src/delegate/future.dart:16: /// Creates a wrapper that asserts the types of ...
4 years, 8 months ago (2016-04-11 20:26:16 UTC) #7
floitsch
LGTM. https://codereview.chromium.org/1870543004/diff/20001/lib/src/delegate/event_sink.dart File lib/src/delegate/event_sink.dart (right): https://codereview.chromium.org/1870543004/diff/20001/lib/src/delegate/event_sink.dart#newcode26 lib/src/delegate/event_sink.dart:26: sink is EventSink/*<T>*/ ? sink : new DelegatingEventSink._(sink); ...
4 years, 8 months ago (2016-04-12 20:03:08 UTC) #8
Lasse Reichstein Nielsen
https://codereview.chromium.org/1870543004/diff/20001/lib/src/lazy_stream.dart File lib/src/lazy_stream.dart (right): https://codereview.chromium.org/1870543004/diff/20001/lib/src/lazy_stream.dart#newcode15 lib/src/lazy_stream.dart:15: /// produce a `Stream`. I think an example would ...
4 years, 8 months ago (2016-04-12 20:18:02 UTC) #9
nweiz
https://codereview.chromium.org/1870543004/diff/20001/lib/src/delegate/event_sink.dart File lib/src/delegate/event_sink.dart (right): https://codereview.chromium.org/1870543004/diff/20001/lib/src/delegate/event_sink.dart#newcode26 lib/src/delegate/event_sink.dart:26: sink is EventSink/*<T>*/ ? sink : new DelegatingEventSink._(sink); On ...
4 years, 8 months ago (2016-04-12 20:41:20 UTC) #10
nweiz
Committed patchset #2 (id:20001) manually as 641e1954b4c915611e5ea9d9ab871748443253ff (presubmit successful).
4 years, 8 months ago (2016-04-12 20:42:19 UTC) #12
floitsch
https://codereview.chromium.org/1870543004/diff/20001/lib/src/delegate/event_sink.dart File lib/src/delegate/event_sink.dart (right): https://codereview.chromium.org/1870543004/diff/20001/lib/src/delegate/event_sink.dart#newcode26 lib/src/delegate/event_sink.dart:26: sink is EventSink/*<T>*/ ? sink : new DelegatingEventSink._(sink); On ...
4 years, 8 months ago (2016-04-14 13:59:45 UTC) #13
nweiz
https://codereview.chromium.org/1870543004/diff/20001/lib/src/delegate/event_sink.dart File lib/src/delegate/event_sink.dart (right): https://codereview.chromium.org/1870543004/diff/20001/lib/src/delegate/event_sink.dart#newcode26 lib/src/delegate/event_sink.dart:26: sink is EventSink/*<T>*/ ? sink : new DelegatingEventSink._(sink); On ...
4 years, 8 months ago (2016-04-14 19:27:16 UTC) #14
nweiz
4 years, 8 months ago (2016-04-14 19:27:17 UTC) #15
Message was sent while issue was closed.

          

Powered by Google App Engine
This is Rietveld 408576698