NewAsyncClient
No overview available.
def NewAsyncClient(
client: Client,
cfg: Config,
scope: promutils.Scope
) - > AsyncClientImpl, error
Creates a new asynchronous client by initializing reader and writer work queues. This function is used to set up the necessary infrastructure for handling asynchronous read and write operations.
Parameters
| Name | Type | Description |
|---|---|---|
| client | Client | The underlying client used by the reader and writer processors. |
| cfg | Config | The configuration settings for the reader and writer work queues. |
| scope | promutils.Scope | The Prometheus scope for metrics collection within the work queues. |
Returns
| Type | Description |
|---|---|
AsyncClientImpl, error | An AsyncClientImpl instance containing the initialized reader and writer work queues, or an error if the work queues could not be created. |