sync

module
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2023 License: Apache-2.0

README

sync

CircleCI

sync provides primitives for working with collections of go routines and their associated context and error handling.

  • sync/errgroup: simplifies common patterns of goroutine use, in particular making it straightforward to reliably wait on parallel or pipelined goroutines, exiting either when the first error is encountered or waiting for all goroutines to finish regardless of error outcome. Contexts are used to control cancelation. It is modeled on golang.org/x/sync/errgroup and other similar packages. It makes use of cloudeng.io/errors to simplify collecting multiple errors.

Directories

Path Synopsis
Package ctxsync provides context aware synchronisation primitives.
Package ctxsync provides context aware synchronisation primitives.
Package errgroup simplifies common patterns of goroutine use, in particular making it straightforward to reliably wait on parallel or pipelined goroutines, exiting either when the first error is encountered or waiting for all goroutines to finish regardless of error outcome.
Package errgroup simplifies common patterns of goroutine use, in particular making it straightforward to reliably wait on parallel or pipelined goroutines, exiting either when the first error is encountered or waiting for all goroutines to finish regardless of error outcome.
Package syncsort provides support for synchronised sorting.
Package syncsort provides support for synchronised sorting.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL