Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DaemonStart ¶
func DaemonStart()
func GoWithRecover ¶
func GoWithRecover(goroutine func(), customRecover func(err interface{}))
GoWithRecover starts a recoverable goroutine using given customRecover() function.
func OperationWithRecover ¶
OperationWithRecover wrap a backoff operation in a Recover.
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool accept the tasks from client,it limits the total of goroutines to a given number by recycling goroutines.
type Semaphore ¶
Semaphore implements the signal mechanism management
func (*Semaphore) P ¶
func (sem *Semaphore) P()
P is a primitive operation that requests the allocation of a unit resource
Click to show internal directories.
Click to hide internal directories.