Creates a new AcDbBatchProcessing instance.
The total number of items to process
The number of chunks to process
The minimum number of items in one chunk. If it is greater than the total number of items to process, the total number is used.
Gets the number of items in one chunk.
The number of items in one chunk
Gets the total number of items to process.
The total number of items to process
Gets the minimum number of items in one chunk.
The minimum number of items in one chunk
Sets the minimum number of items in one chunk.
The new minimum chunk size
Gets the number of chunks to process.
The number of chunks to process
Processes items in chunks using the provided callback function.
This method breaks up the work into chunks and processes each chunk asynchronously, allowing the UI to remain responsive.
The callback function to execute for each chunk
Promise that resolves when all chunks have been processed
Class used to break up work into smaller chunks that are executed asynchronously.
This is often referred to as "batch processing" or "cooperative multitasking," where the time-consuming task is broken into smaller pieces and executed in small intervals to allow the UI to remain responsive.
Example