Skip to content

Latest commit

 

History

History

goroutine

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

This sample Workflow Definition demonstrates how to use multiple workflow safe goroutines (instead of native ones) to process multiple sequences of activities in parallel. In Temporal Workflow Definition, you should not use go keyword to start goroutines. Instead, you use the workflow.Go function.

Steps to run this sample:

  1. Run a Temporal Service
  2. Run the following command to start the worker
go run goroutine/worker/main.go
  1. Run the following command to start the example
go run goroutine/starter/main.go