uid-pool
Version:
High-performance UUID and unique ID pooling for Node.js. Pre-generate IDs in background worker threads for O(1) synchronous acquisition. Drop-in replacement for uuid.v4() and nanoid() with 10-100x better performance under load.
10 lines • 823 B
TypeScript
/**
* uid-pool - High-performance ID pooling library
*
* Pre-generates IDs in background threads for O(1) synchronous acquisition.
* Drop-in replacement for uuid.v4(), nanoid(), and other ID generators.
*/
export { IdPool } from "./auto/index.js";
export type { IdPoolOptions, PoolStats } from "./core/types.js";
export { IdPoolError, InvalidConfigurationError, InvalidGeneratorError, InvalidPoolSizeError, InvalidMinSizeError, InvalidRefillBatchSizeError, InvalidCapacityError, PoolEmptyError, PoolNotReadyError, PoolStoppedError, PoolTimeoutError, GeneratorFailureError, InvalidGeneratorOutputError, WorkerNotInitializedError, WorkerTimeoutError, WorkerCrashError, WorkerGenerationError, SerializationError, ResourceExhaustionError, InvalidRuntimeError, } from "./core/errors.js";
//# sourceMappingURL=index.d.ts.map