在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
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.ogeek.net/article/157664.htm
Isolate简单创建: https://juejin.im/post/5c34ce1351882524b407232a
flutter性能监控工具: https://juejin.im/post/5c4c7634e51d453be80171c9
|
请发表评论