Stella981 Stella981
2年前
JavaScript:再谈Tasks和Microtasks
JavaScript是单线程,也就是说JS的堆栈中只允许有一类任务在执行,不可以同时执行多类任务。在读js文件时,所有的同步任务是一条task,当然了,每一条task都是一个队列,按顺序执行。而如果在中途遇到了setTimeout这种异步任务,就会将它挂起,放到任务队列中去执行,等执行完毕后,如果有callback,就把callback推入到Tasks中去,
Stella981 Stella981
2年前
Gradle : Running another build from a build
build.gradletaskbuild(type:GradleBuild){buildFile'other.gradle'tasks'hello'}other.gradletaskhello<<{println"h
Stella981 Stella981
2年前
C# CRC16 modbus
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;namespaceWaterBubbleCheck{
Wesley13 Wesley13
2年前
C# 一个数组集合,任意组合,不遗漏,不重复
usingSystem;usingSystem.Collections.Generic;usingSystem.Diagnostics;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;names
Stella981 Stella981
2年前
Mvc+三层(批量添加、删除、修改)
DAL层usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;usingModel;usingSystem.Data;usingNe
Wesley13 Wesley13
2年前
C#一种简单而有效的进程间同步
usingSystem;usingSystem.Threading;usingSystem.Threading.Tasks;namespaceInterProcessSynchronization{classInterProcessSync{
Stella981 Stella981
2年前
C#后台调用webapi
usingSystem;usingSystem.Collections.Generic;usingSystem.IO;usingSystem.Linq;usingSystem.Net;usingSystem.Text;usingSystem.Threading.Tasks;
Stella981 Stella981
2年前
Django之使用celery异步完成发送验证码
使用celery的目的:将项目中耗时的操作放入一个新的进程实现1.安装celerypipinstallcelery2.在项目的文件夹下创建包celery\_tasks用于保存celery异步任务3.在celery\_tasks下新建config.py指定broker到redisbroker_url'redis
Wesley13 Wesley13
2年前
C# 生成二维码
 1、添加ThoughtWorks.QRCode.dll引用 2、代码usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Threading.Tasks;usingMicrosof
Wesley13 Wesley13
2年前
VSCODE 针对调试C语言时一闪而过解决办法
针对调试C语言时一闪而过解决办法前提:已经按照C/C已经安装MINGW(并配置完成)原因:主要是因为tasks的配置没有写对解决办法:tasks.json{//Seehttps://go.microsoft.com/fwlink/?LinkId733558