Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoWithRecover ¶
func GoWithRecover(goroutine func(), customRecover func(err interface{}))
GoWithRecover starts a recoverable goroutine using given customRecover() function
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool is a pool of go routines
func (*Pool) AddGoCtx ¶ added in v1.4.3
func (p *Pool) AddGoCtx(goroutine routineCtx)
AddGoCtx adds a recoverable goroutine with a context without starting it
func (*Pool) Cleanup ¶ added in v1.4.3
func (p *Pool) Cleanup()
Cleanup releases resources used by the pool, and should be called when the pool will no longer be used
Click to show internal directories.
Click to hide internal directories.