Functions used for grpc unary calls in clients generated by protojure-protoc-plugin
Functions used for grpc unary calls in clients generated by protojure-protoc-plugin
(invoke-unary client params ch)
Invokes a GRPC operation similar to the invoke operation within api/Provider
, but the promise returned
resolves to a decoded result when successful. Used in remote procedure calls with unary return types.
Value | Type | Description |
---|---|---|
client | api/Provider | An instance of a client provider |
params | map | See 'params' in the '(invoke ..)' method within api/Provider |
ch | core.async/channel | A core.async channel expected to carry the response data |
Invokes a GRPC operation similar to the invoke operation within [[api/Provider]], but the promise returned resolves to a decoded result when successful. Used in remote procedure calls with unary return types. #### Parameters | Value | Type | Description | |-------------|----------------------|----------------------------------------------------------------------------| | **client** | _[[api/Provider]]_ | An instance of a client provider | | **params** | _map_ | See 'params' in the '(invoke ..)' method within [[api/Provider]] | | **ch** | _core.async/channel_ | A core.async channel expected to carry the response data |
(send-unary-params ch params)
Places an item on a channel and then closes the channel, returning a promise that completes after the channel is closed. Used in remote procedure calls with unary parameters.
Value | Type | Description |
---|---|---|
ch | core.async/channel | A core.async channel expected to carry 'params' and be subsequently closed |
params | any | The object to place on the channel |
Places an item on a channel and then closes the channel, returning a promise that completes after the channel is closed. Used in remote procedure calls with unary parameters. #### Parameters | Value | Type | Description | |-------------|----------------------|----------------------------------------------------------------------------| | **ch** | _core.async/channel_ | A core.async channel expected to carry 'params' and be subsequently closed | | **params** | _any_ | The object to place on the channel |
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close