Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: pkg/scheduled_test/lib/src/descriptor/async_descriptor.dart

Issue 16351003: Move pub over to using the pub.dartlang.org API v2. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/scheduled_test/lib/src/descriptor/descriptor.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 library descriptor.async; 5 library descriptor.async;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io' as io; 8 import 'dart:io' as io;
9 9
10 import '../../descriptor.dart'; 10 import '../../descriptor.dart';
(...skipping 15 matching lines...) Expand all
26 : super('<async descriptor>'); 26 : super('<async descriptor>');
27 27
28 Future create([String parent]) => 28 Future create([String parent]) =>
29 schedule(() => future.then((entry) => entry.create(parent))); 29 schedule(() => future.then((entry) => entry.create(parent)));
30 30
31 Future validate([String parent]) => schedule(() => validateNow(parent)); 31 Future validate([String parent]) => schedule(() => validateNow(parent));
32 32
33 Future validateNow([String parent]) => 33 Future validateNow([String parent]) =>
34 future.then((entry) => entry.validateNow(parent)); 34 future.then((entry) => entry.validateNow(parent));
35 35
36 Stream<List<int>> load(String path) => errorStream("AsyncDescriptors don't "
37 "support load().");
38
39 Stream<List<int>> read() => errorStream("AsyncDescriptors don't support "
40 "read().");
41
42 String describe() => "async descriptor"; 36 String describe() => "async descriptor";
43 } 37 }
OLDNEW
« no previous file with comments | « no previous file | pkg/scheduled_test/lib/src/descriptor/descriptor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698