Method GetPushConsumerAsync
GetPushConsumerAsync(string, CancellationToken)
Gets an existing push consumer from the server and creates a INatsJSPushConsumer handle for it.
ValueTask<INatsJSPushConsumer> GetPushConsumerAsync(string consumer, CancellationToken cancellationToken = default)
Parameters
consumerstringConsumer name.
cancellationTokenCancellationTokenA CancellationToken used to cancel the API call.
Returns
- ValueTask<INatsJSPushConsumer>
The NATS JetStream push consumer object.