没有合适的资源?快使用搜索试试~ 我知道了~
timeouts:setTimeout 上的瘦包装器以跟踪和清除超时
共6个文件
js:2个
license:1个
md:1个
需积分: 9 0 下载量 48 浏览量
2021-06-04
06:24:04
上传
评论
收藏 3KB ZIP 举报
温馨提示
超时 试图让清理超时变得更容易 安装 npm install timeouts 用法 var Timeouts = require ( 'timeouts' ) var timeouts = Timeouts ( ) var tid1 = timeouts . timeout ( function ( ) { console . log ( 'yo' ) } , 1000 ) var tid2 = timeouts . timeout ( function ( ) { console . log ( 'not yo' ) } , 1000 ) timeouts . clear ( tid1 ) // clear one timeout timeouts . clearAll ( ) // clear all timeouts created by this instance
资源推荐
资源详情
资源评论
收起资源包目录
timeouts-master.zip (6个子文件)
timeouts-master
LICENSE 1KB
test
index.js 470B
README.md 444B
.gitignore 526B
index.js 696B
package.json 671B
共 6 条
- 1
资源评论
FedAI联邦学习
- 粉丝: 20
- 资源: 4567
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功