17 lines
254 B
Dart
17 lines
254 B
Dart
import 'dart:math';
|
|
|
|
int power() {
|
|
return pow(2, 10);
|
|
}
|
|
|
|
Future<void> sleep(int secs) async {
|
|
await Future.delayed(Duration(seconds: secs));
|
|
}
|
|
|
|
Stream<String> get_names() async* {
|
|
await sleep(1);
|
|
yield 'aaaa';
|
|
await sleep(1);
|
|
yield 'bbbb';
|
|
}
|