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

Issue 1177343004: Add Stream.empty. (Closed)

Created:
5 years, 6 months ago by Lasse Reichstein Nielsen
Modified:
5 years, 5 months ago
Reviewers:
Søren Gjesse, sra1
CC:
reviews_dartlang.org, Leaf
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Also iprove Future.value(null) and documentation of some Stream related classes. R=sgjesse@google.com Committed: https://github.com/dart-lang/sdk/commit/fbedc2b86f6b9df7e32d49d2b4a10e5cafb6d127

Patch Set 1 #

Patch Set 2 : Add test, fix impl. #

Total comments: 9

Patch Set 3 : Remove the null future "optimization". Fix some missing type parameters. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -26 lines) Patch
M sdk/lib/async/future_impl.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/async/stream.dart View 1 2 4 chunks +66 lines, -11 lines 0 comments Download
M sdk/lib/async/stream_controller.dart View 1 2 4 chunks +7 lines, -10 lines 0 comments Download
M sdk/lib/async/stream_impl.dart View 1 1 chunk +12 lines, -0 lines 0 comments Download
M tests/lib/async/future_test.dart View 1 2 4 chunks +42 lines, -4 lines 0 comments Download
A tests/lib/async/stream_empty_test.dart View 1 2 1 chunk +58 lines, -0 lines 0 comments Download
M tests/lib/lib.status View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
Lasse Reichstein Nielsen
5 years, 6 months ago (2015-06-15 10:35:19 UTC) #2
Søren Gjesse
lgtm https://codereview.chromium.org/1177343004/diff/20001/sdk/lib/async/stream.dart File sdk/lib/async/stream.dart (right): https://codereview.chromium.org/1177343004/diff/20001/sdk/lib/async/stream.dart#newcode1528 sdk/lib/async/stream.dart:1528: * As [StreamConsumer.close], or as [EventSink.close] that returns ...
5 years, 6 months ago (2015-06-15 12:57:42 UTC) #3
sra1
https://codereview.chromium.org/1177343004/diff/20001/sdk/lib/async/future.dart File sdk/lib/async/future.dart (right): https://codereview.chromium.org/1177343004/diff/20001/sdk/lib/async/future.dart#newcode184 sdk/lib/async/future.dart:184: if (value == null) return _nullFuture; What is the ...
5 years, 6 months ago (2015-06-15 16:17:41 UTC) #5
Lasse Reichstein Nielsen
https://codereview.chromium.org/1177343004/diff/20001/sdk/lib/async/future.dart File sdk/lib/async/future.dart (right): https://codereview.chromium.org/1177343004/diff/20001/sdk/lib/async/future.dart#newcode184 sdk/lib/async/future.dart:184: if (value == null) return _nullFuture; Ack, true. The ...
5 years, 6 months ago (2015-06-15 16:24:42 UTC) #6
sra1
On 2015/06/15 16:24:42, Lasse Reichstein Nielsen wrote: > https://codereview.chromium.org/1177343004/diff/20001/sdk/lib/async/future.dart > File sdk/lib/async/future.dart (right): > > ...
5 years, 6 months ago (2015-06-15 16:29:22 UTC) #7
Lasse Reichstein Nielsen
ptal https://codereview.chromium.org/1177343004/diff/20001/sdk/lib/async/future.dart File sdk/lib/async/future.dart (right): https://codereview.chromium.org/1177343004/diff/20001/sdk/lib/async/future.dart#newcode184 sdk/lib/async/future.dart:184: if (value == null) return _nullFuture; Rolling this ...
5 years, 6 months ago (2015-06-16 09:25:12 UTC) #8
Søren Gjesse
lgtm
5 years, 6 months ago (2015-06-16 09:27:05 UTC) #9
Lasse Reichstein Nielsen
Committed patchset #3 (id:40001) manually as fbedc2b86f6b9df7e32d49d2b4a10e5cafb6d127 (presubmit successful).
5 years, 6 months ago (2015-06-16 09:38:46 UTC) #10
kevmoo
5 years, 5 months ago (2015-06-30 21:27:30 UTC) #11
Message was sent while issue was closed.
On 2015/06/16 09:38:46, Lasse Reichstein Nielsen wrote:
> Committed patchset #3 (id:40001) manually as
> fbedc2b86f6b9df7e32d49d2b4a10e5cafb6d127 (presubmit successful).

Please update CHANGELOG.md for API changes.

Powered by Google App Engine
This is Rietveld 408576698