[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [signal](./js-utils.signal.md)
## signal() function
Wait for an OS signal.
Signature:
```typescript
export declare function signal(...signals: Array): Promise;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| signals | Array<NodeJS.Signals> | |
Returns:
Promise<NodeJS.Signals>
the fired signal