Make sure to await print statements
This commit is contained in:
parent
bf71e92bdf
commit
cc5286a060
1 changed files with 3 additions and 3 deletions
|
@ -2,15 +2,15 @@ import 'package:libac_dart/utils/IOTools.dart';
|
|||
|
||||
Future<void> main(List<String> args) async {
|
||||
int seconds = int.parse(args[0]);
|
||||
prnt("\rPlease Wait $seconds second(s)...");
|
||||
await prnt("\rPlease Wait $seconds second(s)...");
|
||||
|
||||
while(seconds>=0) {
|
||||
|
||||
await Future.delayed(Duration(seconds: 1));
|
||||
prnt("\rPlease Wait $seconds second(s)...");
|
||||
await prnt("\rPlease Wait $seconds second(s)...");
|
||||
|
||||
seconds--;
|
||||
}
|
||||
|
||||
prnt("\r\n");
|
||||
await prnt("\r\n");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue