Are there other ways to handle error in coroutines...
# testing
p
Are there other ways to handle error in coroutines without using try and catch... something like the java completionStage api... e.g
Copy code
repo.add(user.build())
                .thenAccept { responseObserver.onNext(it) }
                .exceptionally { e -> responseObserver.onError(ApiErrorUtil.handle(e)); null }
                .thenApply { responseObserver.onCompleted() }
                .toCompletableFuture().get()