Skip to main content

SetClient

Sets the global client instance if it has not already been set. This function acquires a lock to ensure thread-safe access to the client instance.

def SetClient(
c: Client
)

Sets the global client instance if it has not been set already. This function ensures that the client is initialized only once, preventing multiple client instances from being created.

Parameters

NameTypeDescription
cClientThe client instance to be set as the global client.