scheduleTask<T> method
ValueTask<T>
scheduleTask<T>(
- Future<
T> task(- ImageWorker worker
- PerfCounter? counter,
inherited
Registers and schedules a task
that returns a single value.
Returns a ValueTask
Implementation
ValueTask<T> scheduleTask<T>(Future<T> Function(W worker) task,
{PerfCounter? counter}) =>
_enqueue<T>(WorkerValueTask<T, W>(task, counter)) as ValueTask<T>;