Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtomicGroup ¶
type AtomicGroup struct {
// contains filtered or unexported fields
}
AtomicGroup terminates as soon as first goroutine terminates..
func NewAtomicGroup ¶
func NewAtomicGroup(parent context.Context) *AtomicGroup
func (*AtomicGroup) Add ¶
func (d *AtomicGroup) Add(cmd Command)
Go spawns function in a goroutine and stores results or errors.
func (*AtomicGroup) Error ¶
func (d *AtomicGroup) Error() error
Error stores an error that was reported by any of the downloader. Should be called after Wait.
func (*AtomicGroup) Stop ¶
func (d *AtomicGroup) Stop()
func (*AtomicGroup) WaitAsync ¶
func (d *AtomicGroup) WaitAsync() <-chan struct{}
type FiniteCommand ¶
FiniteCommand terminates when error is nil.
type InfiniteCommand ¶
InfiniteCommand runs until context is closed.
type QueuedAtomicGroup ¶ added in v0.148.4
type QueuedAtomicGroup struct { *AtomicGroup // contains filtered or unexported fields }
func NewQueuedAtomicGroup ¶ added in v0.148.4
func NewQueuedAtomicGroup(parent context.Context, limit uint32) *QueuedAtomicGroup
func (*QueuedAtomicGroup) Add ¶ added in v0.148.4
func (d *QueuedAtomicGroup) Add(cmd Command)
Click to show internal directories.
Click to hide internal directories.