公告板
版本库
filestore
活动
搜索
登录
王立忠
/
TAI_OTS_Mail
派生自
TAI_OTS_Mail
概况
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
正式版
wzp
2021-05-13
7d694a9113118daec5be7ac224dab46a3b20f106
[~wlz/TAI_OTS_Mail.git]
/
node_modules
/
sync-rpc
/
lib
/
test-worker.js
1
2
3
4
5
6
7
8
9
function init(connection) {
return function(message) {
if (message === 'big') {
return Promise.resolve(Buffer.alloc(30 * 1024 * 1024, 42));
}
return Promise.resolve('sent ' + message + ' to ' + connection);
};
}
module.exports = init;