Files
2021-08-02 14:13:34 -05:00

15 lines
369 B
Dart

import 'package:very_good_analysis/very_good_analysis.dart';
Future<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!');
}