Synced
JobScheduler.ParallelFor
Section titled “JobScheduler.ParallelFor”
- Schedules a range as independent contiguous batches.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.Jobs
Declaration
Section titled “Declaration”public Inno.Core.Jobs.JobHandle Inno.Core.Jobs.JobScheduler.ParallelFor(int length, int batchSize, System.Action<int, int> body)Parameters
Section titled “Parameters”Parameter length: The exclusive upper bound of the complete range.
Parameter batchSize: The maximum number of indices in one batch.
Parameter body: The callback receiving each batch’s inclusive start and exclusive end.
Returns
Section titled “Returns”A handle that completes after every batch.