Skip to content

Commit f8ffcd7

Browse files
authored
Merge pull request #123 from cschleiden/fix-cancellation-docs
Fix docs for cancellation
2 parents 44c99c7 + ae7470a commit f8ffcd7

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)