Create a new LZMA pool
Maximum number of concurrent operations (default: 10)
Get number of currently active tasks
Active task count
Check if pool is at maximum capacity
True if at capacity
Get number of tasks waiting in queue
Queue length
Clear all pending tasks from the queue Active tasks will continue to run
Number of tasks removed from queue
Compress data with automatic queue management
Buffer to compress
Optionalopts: LZMAOptionsLZMA compression options
Promise that resolves to compressed buffer
Decompress data with automatic queue management
Compressed buffer to decompress
Optionalopts: LZMAOptionsLZMA decompression options
Promise that resolves to decompressed buffer
Wait for all active tasks to complete Does not process new tasks added while waiting
Promise that resolves when all active tasks are done
LZMA Pool with concurrency control and event monitoring
Provides rate limiting and backpressure for LZMA operations. Emits events for monitoring and metrics collection in production.
Example
Events: