fd0ae50257860714f90f5f31b33f4fca0dd1eeb3
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / rxjs / src / internal / util / TimeoutError.ts
1 export interface TimeoutError extends Error {
2 }
3
4 export interface TimeoutErrorCtor {
5   new(): TimeoutError;
6 }
7
8 const TimeoutErrorImpl = (() => {
9   function TimeoutErrorImpl(this: any) {
10     Error.call(this);
11     this.message = 'Timeout has occurred';
12     this.name = 'TimeoutError';
13     return this;
14   }
15
16   TimeoutErrorImpl.prototype = Object.create(Error.prototype);
17
18   return TimeoutErrorImpl;
19 })();
20
21 /**
22  * An error thrown when duetime elapses.
23  *
24  * @see {@link operators/timeout}
25  *
26  * @class TimeoutError
27  */
28 export const TimeoutError: TimeoutErrorCtor = TimeoutErrorImpl as any;