temporal-sdk-core-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Temporal.Runtime

Synopsis

Documentation

data Runtime Source #

A handle to the Rust Tokio runtime and thread-pool.

You almost always should use the globalRuntime value, which is initialized once for the entire process.

initializeRuntime :: TelemetryOptions -> IO Runtime Source #

Initialize the Rust runtime and thread-pool.

withRuntime :: Runtime -> (Ptr Runtime -> IO a) -> IO a Source #

Access the underlying Runtime pointer for calling out to Rust.

fetchLogs :: Runtime -> IO (Vector CoreLog) Source #

The Rust runtime exports logs to the Haskell runtime. This function fetches those logs so they can be fed through a logging framework.

data CoreLog Source #

Constructors

CoreLog 

Instances

Instances details
FromJSON CoreLog Source # 
Instance details

Defined in Temporal.Core.CTypes

ToJSON CoreLog Source # 
Instance details

Defined in Temporal.Core.CTypes

Show CoreLog Source # 
Instance details

Defined in Temporal.Core.CTypes