diff --git a/docs/develop/dotnet/benign-exceptions.mdx b/docs/develop/dotnet/benign-exceptions.mdx index 0d3c572b0d..4e741ad524 100644 --- a/docs/develop/dotnet/benign-exceptions.mdx +++ b/docs/develop/dotnet/benign-exceptions.mdx @@ -56,4 +56,4 @@ public class MyActivities } ``` -Use benign exceptions for Activity errors that occur regularly as part of normal operations, such as polling an external service that isn't ready yet, or handling expected transient failures that will be retried. \ No newline at end of file +Use benign exceptions for Activity errors that occur regularly as part of normal operations, such as polling an external service that isn't ready yet, or handling expected transient failures that will be retried. diff --git a/docs/develop/go/temporal-client.mdx b/docs/develop/go/temporal-client.mdx index 2e429402db..9b030287bf 100644 --- a/docs/develop/go/temporal-client.mdx +++ b/docs/develop/go/temporal-client.mdx @@ -206,9 +206,7 @@ code. This is convenient for local development and testing. You can also load a variables or a configuration file, and then override specific options in code. {/* SNIPSTART samples-apps-go-yourapp-gateway {"selectedLines": ["1-23", "32"]} */} - [sample-apps/go/yourapp/gateway/main.go](https://github.com/temporalio/documentation/blob/main/sample-apps/go/yourapp/gateway/main.go) - ```go package main @@ -233,10 +231,9 @@ func main() { log.Fatalln("Unable to create Temporal Client", err) } defer temporalClient.Close() - // ... +// ... } ``` - {/* SNIPEND */} diff --git a/docs/develop/java/benign-exceptions.mdx b/docs/develop/java/benign-exceptions.mdx index b94f26b15e..db785cf6ee 100644 --- a/docs/develop/java/benign-exceptions.mdx +++ b/docs/develop/java/benign-exceptions.mdx @@ -60,4 +60,4 @@ public class MyActivitiesImpl implements MyActivities { } ``` -Use benign exceptions for Activity errors that occur regularly as part of normal operations, such as polling an external service that isn't ready yet, or handling expected transient failures that will be retried. \ No newline at end of file +Use benign exceptions for Activity errors that occur regularly as part of normal operations, such as polling an external service that isn't ready yet, or handling expected transient failures that will be retried. diff --git a/docs/develop/python/benign-exceptions.mdx b/docs/develop/python/benign-exceptions.mdx index 3e4de50d9e..5379ae1527 100644 --- a/docs/develop/python/benign-exceptions.mdx +++ b/docs/develop/python/benign-exceptions.mdx @@ -46,4 +46,4 @@ async def my_activity() -> str: ) ``` -Use benign exceptions for Activity errors that occur regularly as part of normal operations, such as polling an external service that isn't ready yet, or handling expected transient failures that will be retried. \ No newline at end of file +Use benign exceptions for Activity errors that occur regularly as part of normal operations, such as polling an external service that isn't ready yet, or handling expected transient failures that will be retried. diff --git a/docs/develop/ruby/benign-exceptions.mdx b/docs/develop/ruby/benign-exceptions.mdx index 5b6663d61f..90cf2c4e7a 100644 --- a/docs/develop/ruby/benign-exceptions.mdx +++ b/docs/develop/ruby/benign-exceptions.mdx @@ -48,4 +48,4 @@ class MyActivity < Temporalio::Activity::Definition end ``` -Use benign exceptions for Activity errors that occur regularly as part of normal operations, such as polling an external service that isn't ready yet, or handling expected transient failures that will be retried. \ No newline at end of file +Use benign exceptions for Activity errors that occur regularly as part of normal operations, such as polling an external service that isn't ready yet, or handling expected transient failures that will be retried. diff --git a/docs/develop/typescript/benign-exceptions.mdx b/docs/develop/typescript/benign-exceptions.mdx index 1308cce24b..01a485c5a5 100644 --- a/docs/develop/typescript/benign-exceptions.mdx +++ b/docs/develop/typescript/benign-exceptions.mdx @@ -50,4 +50,4 @@ export async function myActivity(): Promise { } ``` -Use benign exceptions for Activity errors that occur regularly as part of normal operations, such as polling an external service that isn't ready yet, or handling expected transient failures that will be retried. \ No newline at end of file +Use benign exceptions for Activity errors that occur regularly as part of normal operations, such as polling an external service that isn't ready yet, or handling expected transient failures that will be retried. diff --git a/docs/develop/typescript/cancellation.mdx b/docs/develop/typescript/cancellation.mdx index 55c6b52599..c6af590ad8 100644 --- a/docs/develop/typescript/cancellation.mdx +++ b/docs/develop/typescript/cancellation.mdx @@ -69,7 +69,7 @@ To simplify checking for cancellation, use the [packages/test/src/workflows/cancel-timer-immediately.ts](https://github.com/temporalio/sdk-typescript/blob/main/packages/test/src/workflows/cancel-timer-immediately.ts) ```ts -import { CancellationScope, CancelledFailure, sleep } from '@temporalio/workflow'; +import { CancelledFailure, CancellationScope, sleep } from '@temporalio/workflow'; export async function cancelTimer(): Promise { // Timers and Activities are automatically cancelled when their containing scope is cancelled. @@ -95,7 +95,7 @@ Alternatively, the preceding can be written as the following. [packages/test/src/workflows/cancel-timer-immediately-alternative-impl.ts](https://github.com/temporalio/sdk-typescript/blob/main/packages/test/src/workflows/cancel-timer-immediately-alternative-impl.ts) ```ts -import { CancellationScope, CancelledFailure, sleep } from '@temporalio/workflow'; +import { CancelledFailure, CancellationScope, sleep } from '@temporalio/workflow'; export async function cancelTimerAltImpl(): Promise { try { @@ -123,7 +123,7 @@ The following code shows how to handle Workflow cancellation by an external clie [packages/test/src/workflows/handle-external-workflow-cancellation-while-activity-running.ts](https://github.com/temporalio/sdk-typescript/blob/main/packages/test/src/workflows/handle-external-workflow-cancellation-while-activity-running.ts) ```ts -import { CancellationScope, isCancellation, proxyActivities } from '@temporalio/workflow'; +import { CancellationScope, proxyActivities, isCancellation } from '@temporalio/workflow'; import type * as activities from '../activities'; const { httpPostJSON, cleanup } = proxyActivities({ @@ -248,7 +248,7 @@ You can achieve complex flows by nesting cancellation scopes. [packages/test/src/workflows/nested-cancellation.ts](https://github.com/temporalio/sdk-typescript/blob/main/packages/test/src/workflows/nested-cancellation.ts) ```ts -import { CancellationScope, isCancellation, proxyActivities } from '@temporalio/workflow'; +import { CancellationScope, proxyActivities, isCancellation } from '@temporalio/workflow'; import type * as activities from '../activities';