start method

Future<Validation> start()

Lancia l'isolate

Implementation

Future<Validation> start() {
  return _iHelper.listen()
                .timeout(_timeout)
                .catchError((e) {
                    if (e is Exception)
                    {
                      return e.toInvalid();
                    }
                    else if (e is Error)
                    {
                      return e.toInvalid();
                    }

                    return Error().toInvalid();
                })
                .then((result) async {
                    await _iHelper.kill();
                    return result;
                });
}