pipeworks_mud_mapper.services.io_queue
Background I/O queue for long-running file operations.
This module provides a tiny thread pool and job registry so callbacks can offload disk-heavy operations without blocking the UI thread.
Classes
Thread-safe registry for background I/O jobs. |
Functions
|
Submit a background I/O job and return its id. |
|
Return the status dict for a job id. |
|
Remove a job id from the registry. |
Module Contents
- class pipeworks_mud_mapper.services.io_queue.IOJobRegistry(max_workers=2)[source]
Thread-safe registry for background I/O jobs.
- pipeworks_mud_mapper.services.io_queue.submit_io_job(func, *args, **kwargs)[source]
Submit a background I/O job and return its id.