-
Notifications
You must be signed in to change notification settings - Fork 127
Closed
Labels
P1A high priority bug; for example, a single project is unusable or has many test failuresA high priority bug; for example, a single project is unusable or has many test failurestype-code-healthInternal changes to our tools and workflows to make them cleaner, simpler, or more maintainableInternal changes to our tools and workflows to make them cleaner, simpler, or more maintainable
Description
As I'm working on dart-lang/sdk#30470, I've found some issues in dartdoc that I'd like to get updated into the SDK:
diff --git a/lib/src/io_utils.dart b/lib/src/io_utils.dart
index 5b2c3455..fb8fdf93 100644
--- a/lib/src/io_utils.dart
+++ b/lib/src/io_utils.dart
@@ -88,7 +88,7 @@ class MultiFutureTracker<T> {
}
/// Wait until fewer or equal to this many Futures are outstanding.
- void _waitUntil(int max) async {
+ Future<void> _waitUntil(int max) async {
while (_queue.length > max) {
await Future.any(_queue);
}
diff --git a/lib/src/model.dart b/lib/src/model.dart
index 530a9d6b..33c274ed 100644
--- a/lib/src/model.dart
+++ b/lib/src/model.dart
@@ -5747,7 +5747,9 @@ class PackageBuilder {
}
} while (!lastPass.containsAll(current));
- await logAnalysisErrors(originalSources);
+ // TODO(jcollins): Determine if await is necessary, if so, change the
+ // return type of [logAnalysisErrors] to `Future<void>`.
+ await (logAnalysisErrors(originalSources) as dynamic);
return libraries.toList();
}
Metadata
Metadata
Assignees
Labels
P1A high priority bug; for example, a single project is unusable or has many test failuresA high priority bug; for example, a single project is unusable or has many test failurestype-code-healthInternal changes to our tools and workflows to make them cleaner, simpler, or more maintainableInternal changes to our tools and workflows to make them cleaner, simpler, or more maintainable