inspired by temporalio/samples-go/mutex
- Run a temporal service
temporal server start-dev
- In a different shell, run the example worker
go run examples/mutex/main.go worker
- In a different shell, execute the workflow
go run examples/mutex/main.go sample-workflow-with-mutex --resource-id foo -d go run examples/mutex/main.go sample-workflow-with-mutex --resource-id foo -d