0.18.0
Pre-release
Pre-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