Home > @rushstack/node-core-library > IRunWithTimeoutOptions
IRunWithTimeoutOptions interface
Signature:
export interface IRunWithTimeoutOptions<TResult>
Remarks
Used with Async.runWithTimeoutAsync().
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
() => Promise<TResult> | TResult | The action to be performed. The action is executed with a timeout. | ||
string | (Optional) The message to use for the error if the timeout is reached. | ||
number | The timeout in milliseconds. |