mirror of
https://github.com/VeryGoodOpenSource/very_good_analysis.git
synced 2025-08-14 17:51:20 +08:00
15 lines
369 B
Dart
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!');
|
|
}
|