init method

Future init()

Implementation

Future init() async {
  var futures =
      List<Future<IsolateWorker<T, R>>>.generate(count, (index) async {
    var worker = IsolateWorker<T, R>();
    await worker.init();
    return worker;
  });
  _workers = await Future.wait(futures);
  _initialized = true;
}