UNPKG

@liberation-data/drivine

Version:

Best and fastest graph database client for TypeScript / Node.js. Provides a level of abstraction for building highly scalable applications, without compromising architectural integrity

17 lines 475 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StreamUtils = void 0; class StreamUtils { static async untilClosed(stream) { return new Promise((resolve, reject) => { stream.on('close', () => { resolve(); }); stream.on('error', (e) => { reject(e); }); }); } } exports.StreamUtils = StreamUtils; //# sourceMappingURL=StreamUtils.js.map