Returns a promise that is fulfilled with a produced value, or rejected after the timeout elapses.
The value returned from the callback or promise.
A callback that receives a signal that is aborted if the timeout elapses, or a promise-like object.
The timeout after which the returned promise is rejected.
The promise that is fulfilled before a timeout elapses, or rejected with a TimeoutError.
Returns a promise that is fulfilled with a produced value, or rejected after the timeout elapses.