| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of vmservice; | 5 part of dart._vmservice; |
| 6 | 6 |
| 7 class Message { | 7 class Message { |
| 8 final Completer _completer = new Completer.sync(); | 8 final Completer _completer = new Completer.sync(); |
| 9 bool get completed => _completer.isCompleted; | 9 bool get completed => _completer.isCompleted; |
| 10 /// Future of response. | 10 /// Future of response. |
| 11 Future<String> get response => _completer.future; | 11 Future<String> get response => _completer.future; |
| 12 Client client; | 12 Client client; |
| 13 | 13 |
| 14 // Client-side identifier for this message. | 14 // Client-side identifier for this message. |
| 15 final serial; | 15 final serial; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 } | 140 } |
| 141 | 141 |
| 142 void setErrorResponse(int code, String details) { | 142 void setErrorResponse(int code, String details) { |
| 143 _completer.complete(encodeRpcError(this, code, | 143 _completer.complete(encodeRpcError(this, code, |
| 144 details: '$method: $details')); | 144 details: '$method: $details')); |
| 145 } | 145 } |
| 146 } | 146 } |
| 147 | 147 |
| 148 external bool sendIsolateServiceMessage(SendPort sp, List m); | 148 external bool sendIsolateServiceMessage(SendPort sp, List m); |
| 149 external void sendRootServiceMessage(List m); | 149 external void sendRootServiceMessage(List m); |
| OLD | NEW |