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

Issue 10536168: Close a _FileInputStream only immediately before onClosed is called, so .closed returns false befor… (Closed)

Created:
8 years, 6 months ago by Bill Hesse
Modified:
8 years, 6 months ago
Reviewers:
Anders Johnsen
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Close a _FileInputStream only immediately before onClosed is called, so .closed returns false before that. BUG=3601 TEST=standalone/io/file_test Committed: https://code.google.com/p/dart/source/detail?r=8649

Patch Set 1 #

Patch Set 2 : Optimize early bailout when reading a closing input stream. #

Total comments: 2

Patch Set 3 : Fix extra line break. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -4 lines) Patch
M runtime/bin/stream_util.dart View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M tests/standalone/io/file_test.dart View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Bill Hesse
8 years, 6 months ago (2012-06-14 10:56:29 UTC) #1
Anders Johnsen
LGTM http://codereview.chromium.org/10536168/diff/2001/runtime/bin/stream_util.dart File runtime/bin/stream_util.dart (right): http://codereview.chromium.org/10536168/diff/2001/runtime/bin/stream_util.dart#newcode125 runtime/bin/stream_util.dart:125: _scheduledCloseCallback == null) { Can this be on ...
8 years, 6 months ago (2012-06-14 11:24:07 UTC) #2
Bill Hesse
8 years, 6 months ago (2012-06-14 11:41:00 UTC) #3
http://codereview.chromium.org/10536168/diff/2001/runtime/bin/stream_util.dart
File runtime/bin/stream_util.dart (right):

http://codereview.chromium.org/10536168/diff/2001/runtime/bin/stream_util.dar...
runtime/bin/stream_util.dart:125: _scheduledCloseCallback == null) {
On 2012/06/14 11:24:07, ajohnsen wrote:
> Can this be on one line?

Yes.

Powered by Google App Engine
This is Rietveld 408576698