mirror of
https://github.com/dart-lang/sdk
synced 2024-09-19 20:51:50 +00:00
[vm/io] Fix more typing issues socket_patch
Socket.{addStream,flush,close,get:done} are returning Future<dynamic> not Future<Socket> because they simply delegate to IOSink which returns Future<dynamic>. Bug: Change-Id: I3ba33b296d750b08d867d3a4e2bac38ee7968ef2 Reviewed-on: https://dart-review.googlesource.com/29322 Reviewed-by: Zach Anderson <zra@google.com> Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
This commit is contained in:
parent
59832fa1d8
commit
daa7cbf517
|
@ -1549,15 +1549,15 @@ class _Socket extends Stream<List<int>> implements Socket {
|
|||
|
||||
void add(List<int> bytes) => _sink.add(bytes);
|
||||
|
||||
Future<Socket> addStream(Stream<List<int>> stream) {
|
||||
Future addStream(Stream<List<int>> stream) {
|
||||
return _sink.addStream(stream);
|
||||
}
|
||||
|
||||
Future<Socket> flush() => _sink.flush();
|
||||
Future flush() => _sink.flush();
|
||||
|
||||
Future<Socket> close() => _sink.close();
|
||||
Future close() => _sink.close();
|
||||
|
||||
Future<Socket> get done => _sink.done;
|
||||
Future get done => _sink.done;
|
||||
|
||||
void destroy() {
|
||||
// Destroy can always be called to get rid of a socket.
|
||||
|
|
Loading…
Reference in a new issue