mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-14 09:18:22 +02:00
Fix:Include Watcher as lib with no dependencies and fix tiny-readdir bug #610
This commit is contained in:
19
server/libs/watcher/aborter/controller.js
Normal file
19
server/libs/watcher/aborter/controller.js
Normal file
@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
/* IMPORT */
|
||||
var signal_1 = require("./signal");
|
||||
/* ABORT CONTROLLER */
|
||||
var AbortController = /** @class */ (function () {
|
||||
function AbortController() {
|
||||
/* VARIABLES */
|
||||
this.signal = new signal_1.default();
|
||||
}
|
||||
/* API */
|
||||
AbortController.prototype.abort = function () {
|
||||
return this.signal.abort();
|
||||
};
|
||||
return AbortController;
|
||||
}());
|
||||
/* EXPORT */
|
||||
module.exports = AbortController;
|
||||
module.exports.default = AbortController;
|
||||
Object.defineProperty(module.exports, "__esModule", { value: true });
|
Reference in New Issue
Block a user