Submit Method
- Namespace
- SatorImaging.UnityFundamentals
Submit(Payload, Func<Payload, ValueTask>, bool)
public void Submit(FiberScheduler.Payload payload, Func<FiberScheduler.Payload, ValueTask> factory, bool batchSubmission = false)
Schedules a new task to be executed by the scheduler.
Parameters
payloadFiberScheduler.PayloadThe payload to be processed by the task.
factoryFunc<FiberScheduler.Payload, ValueTask>A function that creates the task to be executed.
batchSubmissionboolA boolean indicating whether the submission is part of a batch. If
true, the task will be enqueued but may not immediately consumed. Call CompleteBatchSubmission() to ensure consuming tasks submitted in a batch.