Skip to content

Commit ae7470a

Browse files
committed
Fix docs for cancellation
1 parent e8946b6 commit ae7470a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ if err != nil {
254254
255255
#### Perform any cleanup
256256
257-
If you need to run any activities or make calls using `workflow.Context`.
257+
If you need to run any activities or make calls using `workflow.Context` you need to create a new context with `workflow.NewDisconnectedContext`, since the original context is canceled at this point.
258258
259259
```go
260260
func Workflow2(ctx workflow.Context, msg string) (string, error) {

0 commit comments

Comments
 (0)