submit method

Future<ProcessOutput> submit(
  1. ProcessConfig config
)

Submit a process config for execution.

If the pool is at capacity, this will wait until a slot opens.

Implementation

Future<ProcessOutput> submit(ProcessConfig config) async {
  await _acquire();
  try {
    return await _manager.run(config);
  } finally {
    _release();
  }
}