Dart异步与阻塞
import 'dart:async';
import 'dart:io'; void main() async {
for(int i = 0;i<10;i++)
{
async_func(((i%10 + 1) * 1000));
} await sleep(15000);
} Future pause(Duration d) => new Future.delayed(d); Future sleep(int i) => new Future.delayed(Duration(milliseconds: i)); void async_func(int i) async {
await sleep(i);
var now = new DateTime.now();
print("async_func ($i)\t($now)" );
}
flutter 白屏问题:
https://www.jianshu.com/p/c02249c5232e
flutter线程处理CPU密集型任务:
https://www.jianshu.com/p/aa7a8d136078
flutter的http默认无法抓包的问题:
https://www.jb51.net/article/157664.htm
Isolate简单创建:
https://juejin.im/post/5c34ce1351882524b407232a
flutter性能监控工具: