[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, inner: Promise): Promise; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | ms | number | | | inner | Promise<T> | | Returns: Promise<T>