go-concert a is a library of synchronization patterns when dealing with go-routines
APACHE-2.0 License
Bot releases are visible (Hide)
RetryUntil
to timed package by @kvch in https://github.com/elastic/go-concert/pull/57
Full Changelog: https://github.com/elastic/go-concert/compare/v0.2.0...v0.3.0
Published by urso over 3 years ago
(*TaskGroup.Context()
returns the groups internal Context. (#48)(*TaskGroup).Wait()
waits for all managed go routines to return. (#48)TaskGroup.MaxError
configures the maxium number of errors to keep. TheOnQuit
ContinueOnErrors
, RestartOnError
,StopAll
, StopOnError
, StopOnErrorOrCancel
. (#48)(*TaskGroup).Go
will now pass context.Context
to the run function. (#48)TaskGroup.StopOnError
has been superseded by TaskGroup.OnQuit
. (#48)TaskGroup
will now shutdown by default if a managed go-routine did return an error. (#48)Published by urso over 3 years ago
CancelContext
, WithCancelContext
, and WrapCancel
in order to combine a context.Context
and a context.CancelFunc
into a common struct that can be stored as a single field in a struct. (#41)unison.Cell
type. A cell stores states that can be updated asynchronously without back-pressure (unlike a channel). Consumers can read the current state or wait for new updates. (#44)Done()
and Err()
, to simplify use if ctxtool is used to integrate with other types then context.Context. If the input type is already context.Context, its type and functionality (Value, Deadline) are preserved. (#39)chorus
package with types CloseRef
and Closer
(#40)OnceSignaler
(#42)unison.LockManager
(#42)Published by urso about 4 years ago
osctx.WithSignal
utility function, which creates a context that will be cancelled if the process receives an os.Signal. (#31)timed.Period
to return an error. The callback is required to return an error as well. (#28)Published by urso over 4 years ago
Published by urso over 4 years ago
Published by urso over 4 years ago