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
func OperationWithRecover ¶
func OperationWithRecover(operation backoff.Operation) backoff.Operation
OperationWithRecover wrap a backoff operation in a Recover
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool is a pool of go routines
func (*Pool) AddGoCtx ¶
func (p *Pool) AddGoCtx(goroutine routineCtx)
AddGoCtx adds a recoverable goroutine with a context without starting it
func (*Pool) Cleanup ¶
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.