Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Schedules a range as independent contiguous batches.

API: engine
Project: Inno.Core.Jobs

public Inno.Core.Jobs.JobHandle Inno.Core.Jobs.JobScheduler.ParallelFor(int length, int batchSize, System.Action<int, int> body)

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.

A handle that completes after every batch.