Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type WakeFunc ¶
type WakeFunc func(int)
WakeFunc describes a function used by tests to trigger a wakeup of blocked idle goroutines under test. It takes as first parameter the number of goroutines to await before returning to the caller.
type Waker ¶
type Waker interface {
// Wake returns a channel that's closed when the idle routine should wake up.
Wake() <-chan struct{}
}
A Waker is used to signal to idle routines it's time to look for new work.
func NewTestAlways ¶
func NewTestAlways() Waker
Click to show internal directories.
Click to hide internal directories.