Skip to content

Commit 39414c6

Browse files
authored
docs: snipsync update (#3987)
1 parent 022fa58 commit 39414c6

File tree

7 files changed

+10
-13
lines changed

7 files changed

+10
-13
lines changed

docs/develop/dotnet/benign-exceptions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ public class MyActivities
5656
}
5757
```
5858

59-
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.
59+
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.

docs/develop/go/temporal-client.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,7 @@ code. This is convenient for local development and testing. You can also load a
206206
variables or a configuration file, and then override specific options in code.
207207

208208
{/* SNIPSTART samples-apps-go-yourapp-gateway {"selectedLines": ["1-23", "32"]} */}
209-
210209
[sample-apps/go/yourapp/gateway/main.go](https://github.com/temporalio/documentation/blob/main/sample-apps/go/yourapp/gateway/main.go)
211-
212210
```go
213211
package main
214212

@@ -233,10 +231,9 @@ func main() {
233231
log.Fatalln("Unable to create Temporal Client", err)
234232
}
235233
defer temporalClient.Close()
236-
// ...
234+
// ...
237235
}
238236
```
239-
240237
{/* SNIPEND */}
241238

242239
</TabItem>

docs/develop/java/benign-exceptions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ public class MyActivitiesImpl implements MyActivities {
6060
}
6161
```
6262

63-
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.
63+
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.

docs/develop/python/benign-exceptions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ async def my_activity() -> str:
4646
)
4747
```
4848

49-
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.
49+
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.

docs/develop/ruby/benign-exceptions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ class MyActivity < Temporalio::Activity::Definition
4848
end
4949
```
5050

51-
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.
51+
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.

docs/develop/typescript/benign-exceptions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ export async function myActivity(): Promise<string> {
5050
}
5151
```
5252

53-
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.
53+
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.

docs/develop/typescript/cancellation.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ To simplify checking for cancellation, use the
6969
<!--SNIPSTART typescript-cancel-a-timer-from-workflow-->
7070
[packages/test/src/workflows/cancel-timer-immediately.ts](https://github.com/temporalio/sdk-typescript/blob/main/packages/test/src/workflows/cancel-timer-immediately.ts)
7171
```ts
72-
import { CancellationScope, CancelledFailure, sleep } from '@temporalio/workflow';
72+
import { CancelledFailure, CancellationScope, sleep } from '@temporalio/workflow';
7373

7474
export async function cancelTimer(): Promise<void> {
7575
// 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.
9595
<!--SNIPSTART typescript-cancel-a-timer-from-workflow-alternative-impl-->
9696
[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)
9797
```ts
98-
import { CancellationScope, CancelledFailure, sleep } from '@temporalio/workflow';
98+
import { CancelledFailure, CancellationScope, sleep } from '@temporalio/workflow';
9999

100100
export async function cancelTimerAltImpl(): Promise<void> {
101101
try {
@@ -123,7 +123,7 @@ The following code shows how to handle Workflow cancellation by an external clie
123123
<!--SNIPSTART typescript-handle-external-workflow-cancellation-while-activity-running-->
124124
[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)
125125
```ts
126-
import { CancellationScope, isCancellation, proxyActivities } from '@temporalio/workflow';
126+
import { CancellationScope, proxyActivities, isCancellation } from '@temporalio/workflow';
127127
import type * as activities from '../activities';
128128

129129
const { httpPostJSON, cleanup } = proxyActivities<typeof activities>({
@@ -248,7 +248,7 @@ You can achieve complex flows by nesting cancellation scopes.
248248
<!--SNIPSTART typescript-nested-cancellation-scopes-->
249249
[packages/test/src/workflows/nested-cancellation.ts](https://github.com/temporalio/sdk-typescript/blob/main/packages/test/src/workflows/nested-cancellation.ts)
250250
```ts
251-
import { CancellationScope, isCancellation, proxyActivities } from '@temporalio/workflow';
251+
import { CancellationScope, proxyActivities, isCancellation } from '@temporalio/workflow';
252252

253253
import type * as activities from '../activities';
254254

0 commit comments

Comments
 (0)