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 白屏問題:async
https://www.jianshu.com/p/c02249c5232e工具
flutter線程處理CPU密集型任務:post
https://www.jianshu.com/p/aa7a8d136078性能
flutter的http默認沒法抓包的問題:spa
https://www.jb51.net/article/157664.htm.net
Isolate簡單建立:線程
http://www.javashuo.com/article/p-otgzafey-ke.htmlcode
flutter性能監控工具:htm