temporal-sdk-core-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Temporal.Core.Client

Synopsis

Connecting to the server

data Client Source #

A client connection to the Temporal server.

The client is thread-safe and can be shared across threads.

Clients are expensive to create, so you should generally create one per process and share it across your application..

The client doesn't have an explicit close method, but will be cleaned up when it is garbage collected.

connectClient :: Runtime -> ClientConfig -> IO Client Source #

Connect to the Temporal server using a given runtime.

Throws ClientConnectionError if the connection fails.

Making calls to the server

call :: forall svc (t :: Symbol). HasMethodImpl svc t => PrimRpcCall -> Client -> MethodInput svc t -> IO (Either RpcError (MethodOutput svc t)) Source #

data RpcCall a Source #

Constructors

RpcCall 

Primitive access

data CRpcCall Source #

Instances

Instances details
Storable CRpcCall Source # 
Instance details

Defined in Temporal.Core.CTypes

type TokioCall e a = StablePtr PrimMVar -> Int -> TokioSlot e -> TokioSlot a -> IO () Source #

type PrimRpcCall = Ptr CoreClient -> Ptr CRpcCall -> TokioCall CRPCError (CArray Word8) Source #

Use the underlying Rust client pointer