UNPKG

@n8n/typeorm

Version:

Data-Mapper ORM for TypeScript, ES7, ES6, ES5. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, MongoDB databases.

19 lines (17 loc) 428 B
export 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); } } //# sourceMappingURL=Timer.js.map