Skip to content

Latest commit

 

History

History
104 lines (50 loc) · 1.31 KB

File metadata and controls

104 lines (50 loc) · 1.31 KB
hide_title true
custom_edit_url
pagination_prev
pagination_next

Home > @rushstack/node-core-library > IRunWithTimeoutOptions

IRunWithTimeoutOptions interface

Signature:

export interface IRunWithTimeoutOptions<TResult> 

Remarks

Used with Async.runWithTimeoutAsync()<></>.

Properties

Property

Modifiers

Type

Description

action

() => Promise<TResult> | TResult

The action to be performed. The action is executed with a timeout.

timeoutMessage?

string

(Optional) The message to use for the error if the timeout is reached.

timeoutMs

number

The timeout in milliseconds.