vert-x3 / vertx-grpc

gRPC for Vert.x
78 stars 49 forks source link

Fix Promise Result is already complete problem. #105

Closed coding4m closed 3 years ago

coding4m commented 3 years ago

Motivation:

io.grpc.stub.StreamObserver sometimes call onError after call onNext. so Promise would cause a IllegalStateException("Result is already complete").

use Promise.tryFail to prevent this problem.

vietj commented 3 years ago

thanks