UNPKG

redis-smq

Version:

A high-performance, reliable, and scalable message queue for Node.js.

16 lines 555 B
import { StateManager } from '../state-manager.js'; import { PanicError } from 'redis-smq-common'; import { ComponentRegistry } from '../component-registry.js'; export class FactoryAbstract { static ensureInitialized() { if (!StateManager.isRunning()) { throw new PanicError({ message: 'RedisSMQ is not initialized. Call RedisSMQ.initialize() first.', }); } } static track(instance) { return ComponentRegistry.track(instance); } } //# sourceMappingURL=factory-abstract.js.map