You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
432 B
18 lines
432 B
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.addToCleanupQueue = addToCleanupQueue;
|
|
exports.default = cleanup;
|
|
var _screen = require("./screen");
|
|
let cleanupQueue = new Set();
|
|
function cleanup() {
|
|
(0, _screen.clearRenderResult)();
|
|
cleanupQueue.forEach(fn => fn());
|
|
cleanupQueue.clear();
|
|
}
|
|
function addToCleanupQueue(fn) {
|
|
cleanupQueue.add(fn);
|
|
}
|
|
//# sourceMappingURL=cleanup.js.map
|