MCPcopy Create free account
hub / github.com/temporalio/temporal / ExampleGroup

Function ExampleGroup

common/goro/example_group_test.go:57–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57func ExampleGroup() {
58 var svc ExampleService
59 svc.Start()
60 svc.Stop()
61
62 // it is safe to call svc.Stop() multiple times
63 svc.Stop()
64 svc.Stop()
65 svc.Stop()
66
67 // Unordered output:
68 // starting backgroundLoop1
69 // starting backgroundLoop2
70 // stopping backgroundLoop1
71 // stopping backgroundLoop2
72}

Callers

nothing calls this directly

Calls 2

StartMethod · 0.95
StopMethod · 0.95

Tested by

no test coverage detected