unaryRpcFunction

fun <RequestT, ResponseT> unaryRpcFunction(    channel: Channel,     method: MethodDescriptor<RequestT, ResponseT>,     callOptions: CallOptions = CallOptions.DEFAULT,     headers: suspend () -> Metadata = { GrpcMetadata() }): suspend (RequestT) -> ResponseT

Returns a function object representing a unary RPC.

The input headers may be asynchronously formed. headers will be called each time the returned RPC is called - the headers are not cached.

Sources

Link copied to clipboard