Documentation ¶
Overview ¶
Package spawner implements dynamic goroutine management.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RestartMode ¶
type RestartMode int
RestartMode is a mode for spawning threads.
const ( // RestartNever is a mode where goroutines are not restarted once they finish. RestartNever RestartMode = iota // RestartAlways is a mode that ensures goroutines are automatically restarted to maintain the capacity. RestartAlways )
type Spawner ¶
type Spawner struct {
// contains filtered or unexported fields
}
Spawner is a goroutine manager.
func (*Spawner) StopAllThreads ¶
func (s *Spawner) StopAllThreads()
StopAllThreads stops all running goroutines.
Click to show internal directories.
Click to hide internal directories.