start method

Future<void> start()

Start the servers

Implementation

Future<void> start() async {
  _supervisors.clear();
  for (int i = 0; i < threads; i++) {
    final supervisor = await _spawn(
      context: i.toString(),
      handler: run,
      path: path,
    );
    _supervisors.add(supervisor);
    supervisor.resume();
    dev.log('Worker ${i.toString()} ready.', name: 'FINE');
  }
}