1
0
Fork 0
js-utils/docs/api/js-utils.signal.md

27 lines
569 B
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [@apextoaster/js-utils](./js-utils.md) &gt; [signal](./js-utils.signal.md)
## signal() function
Wait for an OS signal.
<b>Signature:</b>
```typescript
export declare function signal(...signals: Array<NodeJS.Signals>): Promise<NodeJS.Signals>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| signals | Array&lt;NodeJS.Signals&gt; | |
<b>Returns:</b>
Promise&lt;NodeJS.Signals&gt;
the fired signal