Files
odo/vendor/golang.org/x/sync/errgroup/pre_go120.go
dependabot[bot] e72cca78eb Go: Bump golang.org/x/sync from 0.4.0 to 0.6.0 (#7187)
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.4.0 to 0.6.0.
- [Commits](https://github.com/golang/sync/compare/v0.4.0...v0.6.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-22 11:09:03 +00:00

15 lines
377 B
Go
Generated

// 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() }
}