Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cancelled = errors.New("cancelled")
View Source
var ExceededMaxTime = errors.New("exceeded max time")
View Source
var IdleTimeout = errors.New("idle timeout")
Functions ¶
This section is empty.
Types ¶
type CompletionTimer ¶
type CompletionTimer struct {
// contains filtered or unexported fields
}
func NewCompletionTimer ¶
func NewCompletionTimer(maxIdleTime, maxTotalTime time.Duration, check func() bool) *CompletionTimer
func (*CompletionTimer) Cancel ¶
func (t *CompletionTimer) Cancel()
func (*CompletionTimer) Notify ¶
func (t *CompletionTimer) Notify()
func (*CompletionTimer) Reset ¶
func (t *CompletionTimer) Reset() int32
Reset lets the completion timer do a new WaitForCompletion if the previous returned an IdleTimeout Reset returns the number of notifications received since last reset
func (*CompletionTimer) WaitForCompletion ¶
func (t *CompletionTimer) WaitForCompletion() (err error)
type WaitGroup ¶
type WaitGroup struct {
// contains filtered or unexported fields
}
func NewWaitGroup ¶
Click to show internal directories.
Click to hide internal directories.