worker-tls
Version:
worker-tls 提供了 动态Worker 功能 和 其它一些 Worker 场景下有用的工具集;让开发者可以像调用对象方法一样动态地调用Worker中的方法,也可以随时地往 Worker 中动态地添加函数 等等。
64 lines (30 loc) • 816 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [worker-tls](./worker-tls.md) > [SortQueue](./worker-tls.sortqueue.md) > [(constructor)](./worker-tls.sortqueue._constructor_.md)
## SortQueue.(constructor)
Constructs a new instance of the `SortQueue` class
**Signature:**
```typescript
constructor(comparer: SortComparer<Item>, items?: Item[]);
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
comparer
</td><td>
[SortComparer](./worker-tls.sortcomparer.md)<!-- --><Item>
</td><td>
</td></tr>
<tr><td>
items
</td><td>
Item\[\]
</td><td>
_(Optional)_
</td></tr>
</tbody></table>