[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [timeout](./js-utils.timeout.md) ## timeout() function Reject after a set amount of time if the original promise has not yet resolved. Signature: ```typescript export declare function timeout(ms: number, oper: Promise): Promise; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | ms | number | | | oper | Promise<T> | | Returns: `Promise`