没有合适的资源?快使用搜索试试~ 我知道了~
web-threads:使用Web Worker进行Web的通用线程
共22个文件
js:13个
yml:2个
gitignore:1个
需积分: 19 1 下载量 61 浏览量
2021-05-19
19:05:45
上传
评论
收藏 94KB ZIP 举报
温馨提示
使用Web Worker进行Web的通用线程 安装 使用npm install web-threads --save或yarn add web-threads添加它到您的项目中yarn add web-threads 用法 带参数的简单功能 import { execute } from 'web-threads' let func = ( value ) => { return value * value } let params = { fn : func . toString ( ) , args : [ 2 ] } execute ( params ) . then ( console . log ) . catch ( console . error ) 具有上下文功能 import { execute } from 'web-thr
资源推荐
资源详情
资源评论
收起资源包目录
web-threads-master.zip (22个子文件)
web-threads-master
.travis.yml 260B
rollup.config.js 355B
FUNDING.yml 65B
package.json 2KB
upgrade.sh 508B
test
unit
worker-test.js 2KB
web-threads-test.js 2KB
integration
integration-test.js 992B
LICENSE 1KB
examples
rollup.config.js 238B
index.js 780B
example-class.js 316B
example-context-args.js 315B
index.html 318B
index-cjs.js 4KB
example-function.js 191B
example-context.js 290B
.gitignore 919B
lib
web-threads.js 689B
worker.js 581B
README.md 3KB
yarn.lock 216KB
共 22 条
- 1
资源评论
weirdquirky
- 粉丝: 30
- 资源: 4683
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 筷手引流工具.apk
- 论文(最终)_20240430235101.pdf
- 基于python编写的Keras深度学习框架开发,利用卷积神经网络CNN,快速识别图片并进行分类
- 最全空间计量实证方法(空间杜宾模型和检验以及结果解释文档).txt
- 5uonly.apk
- 蓝桥杯Python组的历年真题
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 前端开发技术实验报告:内含4四实验&实验报告
- Highlight Plus v20.0.1
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功