34 lines
782 B
Dart
34 lines
782 B
Dart
import 'package:dart_framework/core/isolate_manager.dart';
|
|
import 'package:dart_framework/core/log.dart';
|
|
|
|
Future<void> main() async {
|
|
log('test');
|
|
log('test2');
|
|
|
|
test();
|
|
}
|
|
|
|
void test() async {
|
|
await Future.delayed(const Duration(seconds: 1));
|
|
log('this is test1');
|
|
log('this is test2');
|
|
|
|
await Future.delayed(const Duration(seconds: 2));
|
|
log('this is test3');
|
|
log('this is test4');
|
|
log('this is test5');
|
|
|
|
await Future.delayed(const Duration(seconds: 2));
|
|
log('this is test6');
|
|
log('this is test7');
|
|
|
|
await Future.delayed(const Duration(seconds: 1));
|
|
log('this is test8');
|
|
log('this is test9');
|
|
|
|
await Future.delayed(const Duration(seconds: 3));
|
|
log('this is test10');
|
|
log('this is test11');
|
|
log('this is test12');
|
|
log('this is test13');
|
|
}
|