Function withPlanesParallelPhases
Performs multiple synchronous row phases under one validated source-only
borrow. phases owns the operation barrier: every forRows call joins
its callbacks before returning, so callers may reduce phase-local state
before starting the next phase.
bool withPlanesParallelPhases(Source)(
scope const ref RasterView!Source source,
scope const(size_t)[] sourcePlanes,
scope RasterPlaneWindow!Source[] sourceWindows,
size_t workerLimit,
size_t minimumChunk,
scope nothrow @safe bool delegate(scope const(RasterPlaneWindow!Source)[] sources, ParallelRowsOperation operation) phases
) @trusted;