Dart

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性能监控工具:

https://juejin.im/post/5c4c7634e51d453be80171c9

上一篇:[转帖]CentOS下iRedMail安装配置


下一篇:点滴积累【other】---HTTP 错误 404.13 - Not Found,请求筛选模块被配置为拒绝超过请求内容长度的请求(转载)