Merge remote-tracking branch 'origin/lab_2' into lab_3
This commit is contained in:
commit
600bf3b2cd
@ -161,7 +161,7 @@ class Game extends Object {
|
||||
var rand = Random();
|
||||
int time = rand.nextInt(10000) + 100;
|
||||
//асинхронность (Future), анонимная функция (Anonymous function)
|
||||
Future.delayed(
|
||||
await Future.delayed(
|
||||
Duration(milliseconds: time), () => print("Игра $name загружена"));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user