Skip to content

0.18.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@vyshane vyshane released this 18 Sep 14:11
· 84 commits to master since this release

This release contains backwards-incompatible API changes. Instead of GRPCStatus, RPCs now signal failure through a new RPCError type. The RPCError type contains the GRPCStatus as well as trailing metadata.

The RPC call and handle functions are now based on the following signatures:

RPC Style Input and Output Types
Unary Request -> AnyPublisher<Response, RPCError>
Server streaming Request -> AnyPublisher<Response, RPCError>
Client streaming AnyPublisher<Request, Error> -> AnyPublisher<Response, RPCError>
Bidirectional streaming AnyPublisher<Request, Error> -> AnyPublisher<Response, RPCError>

RetryPolicy.when also now provides RPCError instead of GRPCStatus to its predicate. I.e. when now has the signature RPCError -> Bool