remove node_modules and .gitignore them
This commit is contained in:
-9
@@ -1,9 +0,0 @@
|
||||
import { AbortSignal } from "./AbortSignal";
|
||||
export class AbortController {
|
||||
constructor() {
|
||||
this.signal = new AbortSignal();
|
||||
}
|
||||
abort() {
|
||||
this.signal.abort();
|
||||
}
|
||||
}
|
||||
-20
@@ -1,20 +0,0 @@
|
||||
export class AbortSignal {
|
||||
constructor() {
|
||||
this.onabort = null;
|
||||
this._aborted = false;
|
||||
Object.defineProperty(this, "_aborted", {
|
||||
value: false,
|
||||
writable: true,
|
||||
});
|
||||
}
|
||||
get aborted() {
|
||||
return this._aborted;
|
||||
}
|
||||
abort() {
|
||||
this._aborted = true;
|
||||
if (this.onabort) {
|
||||
this.onabort(this);
|
||||
this.onabort = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
-2
@@ -1,2 +0,0 @@
|
||||
export * from "./AbortController";
|
||||
export * from "./AbortSignal";
|
||||
Reference in New Issue
Block a user