Skip to content
Snippets Groups Projects
Commit 23626422 authored by renovate's avatar renovate
Browse files

Update module golang.org/x/sync to v0.12.0

parent 863f1251
No related branches found
No related tags found
1 merge request!21Update module golang.org/x/sync to v0.12.0
Pipeline #89350 passed with warnings
module git.autistici.org/pipelines/tools/vmine
go 1.19
go 1.23.0
toolchain go1.24.1
require (
golang.org/x/sync v0.11.0
golang.org/x/sync v0.12.0
gopkg.in/yaml.v3 v3.0.1
)
......@@ -46,7 +46,7 @@ func (g *Group) done() {
// returns a non-nil error or the first time Wait returns, whichever occurs
// first.
func WithContext(ctx context.Context) (*Group, context.Context) {
ctx, cancel := withCancelCause(ctx)
ctx, cancel := context.WithCancelCause(ctx)
return &Group{cancel: cancel}, ctx
}
......
// Copyright 2023 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build go1.20
package errgroup
import "context"
func withCancelCause(parent context.Context) (context.Context, func(error)) {
return context.WithCancelCause(parent)
}
// Copyright 2023 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !go1.20
package errgroup
import "context"
func withCancelCause(parent context.Context) (context.Context, func(error)) {
ctx, cancel := context.WithCancel(parent)
return ctx, func(error) { cancel() }
}
# golang.org/x/sync v0.11.0
## explicit; go 1.18
# golang.org/x/sync v0.12.0
## explicit; go 1.23.0
golang.org/x/sync/errgroup
# gopkg.in/yaml.v3 v3.0.1
## explicit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment