mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 16:59:47 +00:00
[doc,io]: Document how errors with File.openRead are exposed
Bug:https://github.com/dart-lang/sdk/issues/53904 Change-Id: Ib457ceb62f6745753e047b5d8160bf6d50fa12cb CoreLibraryReviewExempt: documentation-only change Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/346586 Reviewed-by: Siva Annamalai <asiva@google.com> Commit-Queue: Brian Quinlan <bquinlan@google.com>
This commit is contained in:
parent
5a6ed7a8db
commit
b325bc6a43
|
@ -496,6 +496,9 @@ abstract interface class File implements FileSystemEntity {
|
|||
/// is closed before signaling "done". If there are no writers attached
|
||||
/// to the pipe when it is opened, then [Stream.listen] will wait until
|
||||
/// a writer opens the pipe.
|
||||
///
|
||||
/// Any errors opening or reading the file will appear as error events in
|
||||
/// the returned [Stream].
|
||||
Stream<List<int>> openRead([int? start, int? end]);
|
||||
|
||||
/// Creates a new independent [IOSink] for the file.
|
||||
|
|
Loading…
Reference in a new issue