We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 685b06d + d3815d7 commit 15c5b70Copy full SHA for 15c5b70
Dart/Async programming/Future_async_await.dart
@@ -0,0 +1,14 @@
1
+//Async-programming where we can move to another task before the previous one finishes.
2
+//Future, async, await
3
+
4
+main() async {
5
+ print("Main");
6
+ await futureFun();
7
+ print("Last Statement");
8
+}
9
10
+Future<void> futureFun() async {
11
+ Future.delayed(Duration(seconds: 5), () {
12
+ print("Future Function");
13
+ });
14
0 commit comments