UNPKG

@n8n/typeorm

Version:

Data-Mapper ORM for TypeScript, ES7, ES6, ES5. Supports PostgreSQL and SQLite databases.

23 lines (21 loc) 566 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TimeoutTimer = void 0; class TimeoutTimer { constructor(timeout) { this.timerPromise = new Promise((resolve) => { this.timeoutTimerId = setTimeout(resolve, timeout); }); } get promise() { return this.timerPromise; } clear() { clearTimeout(this.timeoutTimerId); } static start(timeout) { return new TimeoutTimer(timeout); } } exports.TimeoutTimer = TimeoutTimer; //# sourceMappingURL=Timer.js.map