blob: 7a54520a84c6e9149b78cf3df5d88ea3db8e5edd [file] [log] [blame]
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "dart:async" show Future;
import "dart:isolate" show Isolate;
/// Helper function for resolving to a non-relative, non-package URI.
Future<Uri> resolveUri(Uri uri) async {
if (uri.scheme == "package") {
return Isolate.resolvePackageUri(uri);
}
return Uri.base.resolveUri(uri);
}