Function parallelRows
Executes a bounded set of logical row ranges synchronously.
ParallelRowsResult parallelRows(
ulong rowCount,
ulong workerLimit,
ulong minimumChunk,
scope nothrow @safe bool delegate(ulong, ulong) callback
) @trusted;
callback receives a half-open range [firstRow, endRow). It must not
retain the range or start work that outlives this call. Returning false
stops admission of new ranges; already-started callbacks are still joined
before this function returns. Partial writes are therefore possible and
callers must publish output only after completed.
No process-global worker pool is used. workerLimit == 1, an empty
range, and ranges below minimumChunk use the sequential path.