constructor
number of milliseconds to allow tasks to run
message to reject with when timeout triggers
TimeoutRunnerOptions
Promise constructor
TimeoutError constructor
Private
defermessage to reject with when timeout triggers
Optional
errorthe error if running failed
number of milliseconds to allow tasks to run
message to reject with if operation timed out
Optional
resultthe result from running tasks
Private
timeoutsetTimeout handle
TimeoutRunner for running tasks (promises) with a timeout
Please use
xaa.timeout
orxaa.runTimeout
APIs instead.