boot static method

Future<DownloadManager> boot([
  1. int processCount = 0
])

Implementation

static Future<DownloadManager> boot([int processCount = 0]) async {
  var processGroup = await ProcessGroup.boot<Result, bool, HttpClient>(
    setupProcess,
    processInput,
    shutdownProcess,
    processCount == 0 ? Platform.numberOfProcessors : processCount,
  );

  return DownloadManager._(processGroup);
}