Skip to main content

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

NameTypeDescription
clientClientThe underlying client used by the reader and writer processors.
cfgConfigThe configuration settings for the reader and writer work queues.
scopepromutils.ScopeThe Prometheus scope for metrics collection within the work queues.

Returns

TypeDescription
AsyncClientImpl, errorAn AsyncClientImpl instance containing the initialized reader and writer work queues, or an error if the work queues could not be created.