Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
272 B
0
Indexable
Never
void main() async{
  task1();
  await task2();
  task3();
}

void task1(){
  print('task1');
}
Future<void> task2()    async{
  print('task2.1');
  
  await Future.delayed(Duration(seconds:3));
  
  print('task2.2');
}
void task3(){
  print('task3');
}
Leave a Comment