1 export interface TimeoutError extends Error {
4 export interface TimeoutErrorCtor {
8 const TimeoutErrorImpl = (() => {
9 function TimeoutErrorImpl(this: any) {
11 this.message = 'Timeout has occurred';
12 this.name = 'TimeoutError';
16 TimeoutErrorImpl.prototype = Object.create(Error.prototype);
18 return TimeoutErrorImpl;
22 * An error thrown when duetime elapses.
24 * @see {@link operators/timeout}
28 export const TimeoutError: TimeoutErrorCtor = TimeoutErrorImpl as any;