Function temporal_sdk_core::init[][src]

pub async fn init(opts: CoreInitOptions) -> Result<impl Core, CoreInitError>

Initializes an instance of the core sdk and establishes a connection to the temporal server.

Note: Also creates a tokio runtime that will be used for all client-server interactions.

Panics

  • Will panic if called from within an async context, as it will construct a runtime and you cannot construct a runtime from within a runtime.