Skip to content

What is meaning by "pause"? #60

Closed Answered by llucax
desmeit asked this question in Q&A
Discussion options

You must be logged in to vote

@desmeit I just found my dart environment I use to make releases and tried the countdown example (with a small modification to make it more obvious) which pauses the timer and it works fine:

$ dart --version
Dart SDK version: 3.0.2 (stable) (Tue May 23 08:26:58 2023 +0000) on "linux_x64"
$ git diff | cat
diff --git a/example/countdown.dart b/example/countdown.dart
index c26429e..0eb1ea7 100644
--- a/example/countdown.dart
+++ b/example/countdown.dart
@@ -27,10 +27,10 @@ void main() async {
     },
   )..start();
 
-  print('And wait 2.1 seconds...');
+  print('And wait 2.5 seconds...');
   print('(0.1 extra to make sure there is no race between the timer and the '
       'waiting here)');
-…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by llucax
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #57 on July 12, 2023 10:38.