Files
2020-09-01 14:58:59 -05:00

15 lines
361 B
Dart

import 'package:very_good_analysis/very_good_analysis.dart';
void main() async {
/// Await async functions.
await asyncFunction();
/// Use [unawaited] to indicate that a [Future] is intentionally not awaited.
/// Otherwise you'll get a warning
unawaited(asyncFunction());
}
Future<String> asyncFunction() {
return Future.value('hello world!');
}