UNPKG

worker-tls

Version:

worker-tls 提供了 动态Worker 功能 和 其它一些 Worker 场景下有用的工具集;让开发者可以像调用对象方法一样动态地调用Worker中的方法,也可以随时地往 Worker 中动态地添加函数 等等。

77 lines (35 loc) 959 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [worker-tls](./worker-tls.md) &gt; [DynamicWorkerFromInstOptions](./worker-tls.dynamicworkerfrominstoptions.md) ## DynamicWorkerFromInstOptions interface 从 worker 实例创建 动态 Worker 的选项 **Signature:** ```typescript export interface DynamicWorkerFromInstOptions<W extends AbstractWorker = Worker> ``` ## Properties <table><thead><tr><th> Property </th><th> Modifiers </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> [name?](./worker-tls.dynamicworkerfrominstoptions.name.md) </td><td> </td><td> string </td><td> _(Optional)_ worker 的名字 </td></tr> <tr><td> [worker](./worker-tls.dynamicworkerfrominstoptions.worker.md) </td><td> </td><td> W </td><td> Worker 实例 </td></tr> </tbody></table>