Skip to main content

new_shared_sdk_context

Function new_shared_sdk_context 

Source
pub async fn new_shared_sdk_context(
    config: SdkContextConfig,
) -> Result<Arc<SdkContext>, SdkError>
Expand description

Constructs an SdkContext from a SdkContextConfig.

The returned Arc is cheap to clone and can back many SDK instances, sharing their HTTP client and operator gRPC channels.