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

Issue 119673002: Add a ScheduledStream class and some stream matchers. (Closed)

Created:
7 years ago by nweiz
Modified:
6 years, 11 months ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add a ScheduledStream class and some stream matchers. R=rnystrom@google.com Committed: https://code.google.com/p/dart/source/detail?r=31629

Patch Set 1 #

Total comments: 42

Patch Set 2 : code review #

Total comments: 8

Patch Set 3 : code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1400 lines, -62 lines) Patch
M pkg/barback/lib/src/stream_replayer.dart View 1 2 3 chunks +10 lines, -9 lines 0 comments Download
M pkg/barback/lib/src/utils.dart View 1 2 1 chunk +54 lines, -45 lines 0 comments Download
A pkg/scheduled_test/lib/scheduled_stream.dart View 1 2 1 chunk +255 lines, -0 lines 0 comments Download
A pkg/scheduled_test/lib/src/stream_matcher.dart View 1 1 chunk +294 lines, -0 lines 0 comments Download
M pkg/scheduled_test/lib/src/utils.dart View 1 2 2 chunks +73 lines, -8 lines 0 comments Download
A pkg/scheduled_test/test/scheduled_stream/scheduled_stream_test.dart View 1 1 chunk +396 lines, -0 lines 0 comments Download
A pkg/scheduled_test/test/scheduled_stream/stream_matcher_test.dart View 1 1 chunk +288 lines, -0 lines 0 comments Download
M pkg/scheduled_test/test/utils.dart View 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
nweiz
7 years ago (2013-12-20 02:04:31 UTC) #1
Bob Nystrom
Looks pretty swell! https://codereview.chromium.org/119673002/diff/1/pkg/scheduled_test/lib/scheduled_stream.dart File pkg/scheduled_test/lib/scheduled_stream.dart (right): https://codereview.chromium.org/119673002/diff/1/pkg/scheduled_test/lib/scheduled_stream.dart#newcode46 pkg/scheduled_test/lib/scheduled_stream.dart:46: final _pendingValues = new Queue<Either<T, Pair<dynamic, ...
7 years ago (2013-12-21 00:11:34 UTC) #2
nweiz
https://codereview.chromium.org/119673002/diff/1/pkg/scheduled_test/lib/scheduled_stream.dart File pkg/scheduled_test/lib/scheduled_stream.dart (right): https://codereview.chromium.org/119673002/diff/1/pkg/scheduled_test/lib/scheduled_stream.dart#newcode46 pkg/scheduled_test/lib/scheduled_stream.dart:46: final _pendingValues = new Queue<Either<T, Pair<dynamic, StackTrace>>>(); On 2013/12/21 ...
6 years, 11 months ago (2014-01-07 03:16:39 UTC) #3
Bob Nystrom
A couple of suggestions but LGTM either way! https://codereview.chromium.org/119673002/diff/60001/pkg/barback/lib/src/utils.dart File pkg/barback/lib/src/utils.dart (right): https://codereview.chromium.org/119673002/diff/60001/pkg/barback/lib/src/utils.dart#newcode13 pkg/barback/lib/src/utils.dart:13: class ...
6 years, 11 months ago (2014-01-08 00:47:40 UTC) #4
nweiz
Committed patchset #3 manually as r31629 (presubmit successful).
6 years, 11 months ago (2014-01-08 22:14:39 UTC) #5
nweiz
6 years, 11 months ago (2014-01-08 22:15:09 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/119673002/diff/60001/pkg/barback/lib/src/util...
File pkg/barback/lib/src/utils.dart (right):

https://codereview.chromium.org/119673002/diff/60001/pkg/barback/lib/src/util...
pkg/barback/lib/src/utils.dart:13: class FallibleValue<E> {
On 2014/01/08 00:47:40, Bob Nystrom wrote:
> What do you think of just calling this "Fallible"? That would read nicely with
> the type argument as the noun. Ex: Fallible<int>

Done.

https://codereview.chromium.org/119673002/diff/60001/pkg/barback/lib/src/util...
pkg/barback/lib/src/utils.dart:17: /// Whether [this] has an [error], as opposed
to an[value].
On 2014/01/08 00:47:40, Bob Nystrom wrote:
> "an[" -> "a ["

Done.

https://codereview.chromium.org/119673002/diff/60001/pkg/barback/lib/src/util...
pkg/barback/lib/src/utils.dart:61: FallibleValue.withValue(this._value)
On 2014/01/08 00:47:40, Bob Nystrom wrote:
> Maybe just:
> 
> new Fallible.value(...)
> new Fallible.error(...)

That's what I had at first, but those apparently conflict with the [value] and
[error] getters.

https://codereview.chromium.org/119673002/diff/60001/pkg/scheduled_test/lib/s...
File pkg/scheduled_test/lib/scheduled_stream.dart (right):

https://codereview.chromium.org/119673002/diff/60001/pkg/scheduled_test/lib/s...
pkg/scheduled_test/lib/scheduled_stream.dart:192: return new
Future.error(valueOrError.error, valueOrError.stackTrace);
On 2014/01/08 00:47:40, Bob Nystrom wrote:
> Given how nicely it maps 1-1, you could just add a .toFuture() to
FallibleValue.

Done.

Powered by Google App Engine
This is Rietveld 408576698