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 Add PathExistsException and PathAccessException FileSystemException subclasses. 2022-11-30 04:54:52 +00:00
data_transformer.dart Removed Non Null Check 2023-06-15 13:01:25 +00:00
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 [standalone, io] Don't register service extensions in product mode. 2023-08-30 21:46:17 +00:00
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 Tiny code cleanup: Remove _asyncRunZoned being an alias of runZoned 2023-07-11 11:37:57 +00:00
io_resource_info.dart Expose the members of _ProcessImpl to avoid dynamic invocations. 2022-09-16 21:28:30 +00:00
io_service.dart Implement anonymous pipes and the ability to transmit them between processes using Unix Domain Sockets. 2022-09-13 21:16:28 +00:00
io_sink.dart Mention that IOSink truncates List<int> to bytes 2023-06-27 19:39:01 +00:00
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 Use utf8.encode() instead of longer const Utf8Encoder.convert() 2023-07-24 09:28:38 +00:00
platform.dart Remove some getters for final fields 2023-05-19 00:52:57 +00:00
platform_impl.dart [pkg/vm] Initial work on constant operating system fields and getters. 2023-02-10 16:29:50 +00:00
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 Add ServerSocketBase to remove dynamic invocations of secure sockets in _HttpServer. 2022-11-10 22:28:48 +00:00
secure_socket.dart [io/doc]: Provide more references to SocketOption.tcpNoDelay. 2023-09-12 18:15:08 +00:00
security_context.dart Add Dart 3 class modifiers to dart:io. 2023-04-04 19:06:21 +00:00
service_object.dart [flip-modifiers]: Reapply "Enforce current library restrictions." 2023-03-03 09:37:38 +00:00
socket.dart [doc/io] Add a RawSocketEvent example. 2023-10-30 16:53:17 +00:00
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 Additional dart:io class modifier changes. 2023-04-04 21:08:07 +00:00
sync_socket.dart Add Dart 3 class modifiers to dart:io. 2023-04-04 19:06:21 +00:00