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

Issue 1911053002: Add sinks to provide synchronous access to events. (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/convert@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add sinks to provide synchronous access to events. These are useful when doing chunked conversion in a synchronous context. Closes #2 R=lrn@google.com Committed: https://github.com/dart-lang/convert/commit/cd3d6123a6ca69dd62c82a7f581c0d1579a466a8

Patch Set 1 #

Total comments: 12

Patch Set 2 : Code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+311 lines, -1 line) Patch
M CHANGELOG.md View 1 chunk +5 lines, -0 lines 0 comments Download
M lib/convert.dart View 1 chunk +3 lines, -0 lines 0 comments Download
A lib/src/accumulator_sink.dart View 1 1 chunk +37 lines, -0 lines 0 comments Download
A lib/src/byte_accumulator_sink.dart View 1 1 chunk +53 lines, -0 lines 0 comments Download
A lib/src/string_accumulator_sink.dart View 1 1 chunk +46 lines, -0 lines 0 comments Download
M pubspec.yaml View 1 chunk +1 line, -1 line 0 comments Download
A test/accumulator_sink_test.dart View 1 1 chunk +50 lines, -0 lines 0 comments Download
A test/byte_accumulator_sink_test.dart View 1 1 chunk +58 lines, -0 lines 0 comments Download
A test/string_accumulator_sink_test.dart View 1 1 chunk +58 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
nweiz
4 years, 8 months ago (2016-04-21 20:37:46 UTC) #2
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/1911053002/diff/1/lib/src/accumulator_sink.dart File lib/src/accumulator_sink.dart (right): https://codereview.chromium.org/1911053002/diff/1/lib/src/accumulator_sink.dart#newcode7 lib/src/accumulator_sink.dart:7: /// A sink that provides synchronous access to ...
4 years, 8 months ago (2016-04-22 09:15:14 UTC) #3
Lasse Reichstein Nielsen
You can also refer to ChunkedConversionSink.withCallback for the case where you just want the list ...
4 years, 8 months ago (2016-04-22 09:17:33 UTC) #4
Lasse Reichstein Nielsen
And maybe consider having a "clear" method on the sinks, so you can take the ...
4 years, 8 months ago (2016-04-22 09:18:51 UTC) #5
nweiz
Code review changes
4 years, 8 months ago (2016-04-22 21:19:36 UTC) #6
nweiz
> You can also refer to ChunkedConversionSink.withCallback > for the case where you just want ...
4 years, 8 months ago (2016-04-22 21:19:56 UTC) #7
nweiz
4 years, 8 months ago (2016-04-22 21:20:09 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
cd3d6123a6ca69dd62c82a7f581c0d1579a466a8 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698