mirror of
https://github.com/VeryGoodOpenSource/very_good_analysis.git
synced 2025-08-15 10:30:56 +08:00
13 lines
359 B
Dart
13 lines
359 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() => Future.value('hello world!');
|