Skip to content

Commit 553a2a8

Browse files
committed
Add comments to the new public RegisterWithName function
Signed-off-by: Tiago Scolari <[email protected]>
1 parent 3bc00c8 commit 553a2a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

workflow/worker.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ type registerOptions struct {
119119

120120
type registerOption func(*registerOptions) error
121121

122+
// RegisterWithName allows you to specify a custom name for the workflow or activity being registered.
123+
// Activities and Workflows registered without a explicit name will use the function name as the name.
122124
func RegisterWithName(name string) registerOption {
123125
return func(opts *registerOptions) error {
124126
opts.Name = name

0 commit comments

Comments
 (0)