没有合适的资源?快使用搜索试试~ 我知道了~
thread-stream:一种将数据发送到Node.js辅助线程的流传输方式
共25个文件
js:15个
mjs:3个
gitignore:2个
需积分: 5 0 下载量 3 浏览量
2021-04-11
05:47:35
上传
评论
收藏 15KB ZIP 举报
温馨提示
线程流 一种将数据发送到Node.js工作线程的流传输方式。 安装 npm i thread-stream 用法 'use strict' const ThreadStream = require ( 'thread-stream' ) const { join } = require ( 'path' ) const stream = new ThreadStream ( { filename : join ( __dirname , 'worker.js' ) , workerData : { dest } , workerOpts : { } , // Other options to be passed to Worker sync : false , // default } ) stream . write ( 'hello' ) // Asynchronous
资源推荐
资源详情
资源评论
收起资源包目录
thread-stream-main.zip (25个子文件)
thread-stream-main
.gitignore 2KB
package.json 847B
LICENSE 1KB
index.js 9KB
.github
workflows
nodejs.yml 529B
README.md 871B
lib
indexes.js 107B
worker.js 2KB
wait.js 2KB
bench.js 2KB
.husky
.gitignore 2B
pre-commit 51B
test
port.js 240B
to-file.js 221B
multibyte-chars.test.mjs 1KB
create-and-exit.js 362B
bench.test.js 695B
to-file.mjs 206B
indexes.js 250B
esm.test.mjs 1KB
base.test.js 6KB
helper.js 485B
exit.js 216B
unhandledRejection.js 350B
thread-management.test.js 2KB
共 25 条
- 1
资源评论
帝哲
- 粉丝: 35
- 资源: 4669
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功