Slide 54
Slide 54 text
ࣗಈੜίʔυʢൈਮʣhelloworld.grpc.swift
internal final class Greeter_GreeterServiceClient: ServiceClientBase, Greeter_GreeterService {
/// Synchronous. Unary.
internal func sayHello(_ request: Greeter_HelloRequest) throws -> Greeter_HelloResponse {
return try Greeter_GreeterSayHelloCallBase(channel)
.run(request: request, metadata: metadata)
}
/// Asynchronous. Unary.
internal func sayHello(_ request: Greeter_HelloRequest,
completion: @escaping (Greeter_HelloResponse?, CallResult) -> Void)
throws -> Greeter_GreeterSayHelloCall {
return try Greeter_GreeterSayHelloCallBase(channel)
.start(request: request, metadata: metadata, completion: completion)
}
}