Class: Client
client.Client
High level SDK client.
Hierarchy
-
BaseClient
↳
Client
Constructors
constructor
• new Client(options?
): Client
Parameters
Name | Type |
---|---|
options? | ClientOptions |
Returns
Overrides
BaseClient.constructor
Properties
activity
• Readonly
activity: AsyncCompletionClient
(Async) Activity completion sub-client - use to manually manage Activities
connection
• Readonly
connection: ConnectionLike
Inherited from
BaseClient.connection
options
• Readonly
options: LoadedClientOptions
schedule
• Readonly
schedule: ScheduleClient
Schedule sub-client - use to start and interact with Schedules
taskQueue
• Readonly
taskQueue: TaskQueueClient
Task Queue sub-client - use to perform operations on Task Queues
workflow
• Readonly
workflow: WorkflowClient
Workflow sub-client - use to start and interact with Workflows
Accessors
workflowService
• get
workflowService(): WorkflowService
Raw gRPC access to the Temporal service.
NOTE: The namespace provided in options is not automatically set on requests made via this service object.
Returns
Methods
withAbortSignal
▸ withAbortSignal<R
>(abortSignal
, fn
): Promise
<R
>
Set an AbortSignal
that, when aborted,
cancels any ongoing service requests executed in fn
's scope.
Type parameters
Name |
---|
R |
Parameters
Name | Type |
---|---|
abortSignal | AbortSignal |
fn | () => Promise <R > |
Returns
Promise
<R
>
value returned from fn
See
Inherited from
BaseClient.withAbortSignal
withDeadline
▸ withDeadline<R
>(deadline
, fn
): Promise
<R
>
Set the deadline for any service requests executed in fn
's scope.
Type parameters
Name |
---|
R |
Parameters
Name | Type |
---|---|
deadline | number | Date |
fn | () => Promise <R > |
Returns
Promise
<R
>
Inherited from
BaseClient.withDeadline
withMetadata
▸ withMetadata<R
>(metadata
, fn
): Promise
<R
>
Set metadata for any service requests executed in fn
's scope.
Type parameters
Name |
---|
R |
Parameters
Name | Type |
---|---|
metadata | Metadata |
fn | () => Promise <R > |
Returns
Promise
<R
>
returned value of fn
See
Inherited from
BaseClient.withMetadata