OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library json_rpc_2.client; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 | 6 |
9 import 'package:stack_trace/stack_trace.dart'; | 7 import 'package:stack_trace/stack_trace.dart'; |
10 | 8 |
11 import 'exception.dart'; | 9 import 'exception.dart'; |
12 import 'two_way_stream.dart'; | 10 import 'two_way_stream.dart'; |
13 import 'utils.dart'; | 11 import 'utils.dart'; |
14 | 12 |
15 /// A JSON-RPC 2.0 client. | 13 /// A JSON-RPC 2.0 client. |
16 /// | 14 /// |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 /// A pending request to the server. | 202 /// A pending request to the server. |
205 class _Request { | 203 class _Request { |
206 /// The completer to use to complete the response future. | 204 /// The completer to use to complete the response future. |
207 final Completer completer; | 205 final Completer completer; |
208 | 206 |
209 /// The stack chain from where the request was made. | 207 /// The stack chain from where the request was made. |
210 final Chain chain; | 208 final Chain chain; |
211 | 209 |
212 _Request(this.completer, this.chain); | 210 _Request(this.completer, this.chain); |
213 } | 211 } |
OLD | NEW |