roundIsolate method

Future<void> roundIsolate()

Schedules the pool to run tasks, ensuring only one thread runs this logic at a time.

Implementation

Future<void> roundIsolate() async {
  await _lock.synchronized(() async {
    if (_taskList.isEmpty) return;
    await _runIsolateWithTask();
  });
}