Skip to content

Commit b790847

Browse files
committed
Move Canceled
1 parent 8dee177 commit b790847

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

workflow/context.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import "github.com/cschleiden/go-workflows/internal/sync"
44

55
type CancelFunc = sync.CancelFunc
66

7+
var Canceled = sync.Canceled
8+
79
// WithCancel returns a copy of parent with a new Done channel. The returned
810
// context's Done channel is closed when the returned cancel function is called
911
// or when the parent context's Done channel is closed, whichever happens first.

workflow/sync.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ type (
99
WaitGroup = sync.WaitGroup
1010
)
1111

12-
var Canceled = sync.Canceled
13-
1412
// NewWaitGroup creates a new WaitGroup instance.
1513
func NewWaitGroup() WaitGroup {
1614
return sync.NewWaitGroup()

0 commit comments

Comments
 (0)