We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dee177 commit b790847Copy full SHA for b790847
workflow/context.go
@@ -4,6 +4,8 @@ import "github.com/cschleiden/go-workflows/internal/sync"
4
5
type CancelFunc = sync.CancelFunc
6
7
+var Canceled = sync.Canceled
8
+
9
// WithCancel returns a copy of parent with a new Done channel. The returned
10
// context's Done channel is closed when the returned cancel function is called
11
// or when the parent context's Done channel is closed, whichever happens first.
workflow/sync.go
@@ -9,8 +9,6 @@ type (
WaitGroup = sync.WaitGroup
)
12
-var Canceled = sync.Canceled
13
-
14
// NewWaitGroup creates a new WaitGroup instance.
15
func NewWaitGroup() WaitGroup {
16
return sync.NewWaitGroup()
0 commit comments