Skip to content

Commit d77e5dc

Browse files
authored
Add more info to goroutine sample README (#407)
1 parent e99b277 commit d77e5dc

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

branch/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
## Parallel Activities
2+
3+
This sample demonstrates how to kick off multiple activities in parallel and
4+
then synchronously await their results once all have completed.
5+
26
<!-- @@@SNIPSTART samples-go-branch-readme -->
37
Make sure the [Temporal Server is running locally](https://learn.temporal.io/getting_started/go/dev_environment/#set-up-a-local-temporal-service-for-development-with-temporal-cli).
48

goroutine/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
This sample Workflow Definition demonstrates how to use multiple workflow safe goroutines (instead of native ones) to
22
process multiple sequences of activities in parallel.
33
In Temporal Workflow Definition, you should not use `go` keyword to start goroutines. Instead, you use the `workflow.Go`
4-
function.
4+
function, which spawns a coroutine that is never run in parallel, but instead deterministically.
5+
6+
To see more information on goroutines and multithreading, see our
7+
[docs on Go SDK multithreading](https://docs.temporal.io/develop/go/go-sdk-multithreading).
58

69
### Steps to run this sample:
710

goroutine/goroutine_workflow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
)
1010

1111
/**
12-
* This sample workflow demonstrates how to use multiple Temporal gorotinues (instead of native goroutine) to process a
12+
* This sample workflow demonstrates how to use multiple Temporal goroutines (instead of native goroutine) to process a
1313
* a sequence of activities in parallel.
1414
* In Temporal workflow, you should create goroutines using workflow.Go method.
1515
*/

0 commit comments

Comments
 (0)