worker-tls
Version:
worker-tls 提供了 动态Worker 功能 和 其它一些 Worker 场景下有用的工具集;让开发者可以像调用对象方法一样动态地调用Worker中的方法,也可以随时地往 Worker 中动态地添加函数 等等。
81 lines (37 loc) • 933 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [worker-tls](./worker-tls.md) > [CallOptions](./worker-tls.calloptions.md)
## CallOptions interface
函数的调用选项
**Signature:**
```typescript
export interface CallOptions<Args extends any[] = any[]>
```
## Remarks
用于设置 transfer
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[args](./worker-tls.calloptions.args.md)
</td><td>
</td><td>
Args
</td><td>
给worker 里对应的函数传递的参数
</td></tr>
<tr><td>
[transfer](./worker-tls.calloptions.transfer.md)
</td><td>
</td><td>
Transferable\[\]
</td><td>
设置将参数传送给 worker 时可转移的数据
</td></tr>
</tbody></table>