toEither method

AsyncResult<T> toEither()

Implementation

AsyncResult<T> toEither() async {
  try {
    return Either.right(await this);
  } on Exception catch (e) {
    return Either.left(e);
  }
}