dart-sdk/sdk/lib/io
Brian Quinlan c771931f6b [doc, io] Document the error behavior for File.openRead/file.openWrite
I recently fixed a bug by adding a `sink.done.ignore()` into library code: https://dart-review.googlesource.com/c/sdk/+/351380

My thinking now is that is a bad idea because it allows errors to pass silently if the sink is not closed or flushed (and the results are awaited!). Instead, we should document this as a general pattern for sinks.

...but that isn't satisfying either. `sink.done.ignore()` really means "I promise that I will handle errors elsewhere" but there is no actual enforcement of that.

Bug:https://github.com/dart-lang/sdk/issues/54707
Change-Id: I92feb43b1b2c57933c2343f4b6d354792cd13d72
CoreLibraryReviewExempt: dart io documentation-only
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/352442
Commit-Queue: Brian Quinlan <bquinlan@google.com>
Reviewed-by: Lasse Nielsen <lrn@google.com>
2024-03-14 22:43:32 +00:00
..
common.dart
data_transformer.dart
directory.dart Fix Directory.current setter compatibility with IOOverrides 2023-12-18 20:23:21 +00:00
directory_impl.dart Fix Directory.current setter compatibility with IOOverrides 2023-12-18 20:23:21 +00:00
embedder_config.dart
eventhandler.dart
file.dart [doc, io] Document the error behavior for File.openRead/file.openWrite 2024-03-14 22:43:32 +00:00
file_impl.dart
file_system_entity.dart [io] Changed Minimum Limit for Trimming File or Dir Path in Windows 2024-01-11 10:53:09 +00:00
io.dart
io_resource_info.dart
io_service.dart
io_sink.dart
io_sources.gni
link.dart Document FileSystemEntity.delete when the type of object on the file system does not match the FileSystemEntity type. 2023-11-13 20:09:08 +00:00
namespace_impl.dart
network_profiling.dart Account for changes to package:http_profile in _createHttpProfileRequestFromProfileMap 2024-03-08 21:32:15 +00:00
overrides.dart
platform.dart
platform_impl.dart
process.dart [io] Fix a bug where Process.stdin.add exceptions could not be caught 2024-02-13 18:26:49 +00:00
secure_server_socket.dart
secure_socket.dart
security_context.dart
service_object.dart
socket.dart
stdio.dart [io] Make it possible to change the line ending output by stdout and stderr. 2024-02-16 20:06:03 +00:00
string_transformer.dart
sync_socket.dart