Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultLimit = 10
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PoolAsync ¶
type PoolAsync struct {
// contains filtered or unexported fields
}
PoolAsync has a pool for async.
func NewDefaultPoolAsync ¶
func NewDefaultPoolAsync() *PoolAsync
func NewPoolAsync ¶
func (*PoolAsync) Do ¶
Deprecated
get a ticket from poolChan. if got, then do f(), if not, wait for poolChan.
func (*PoolAsync) DoWitError ¶
get a ticket from poolChan. if got, then do f(), if not, wait for poolChan.
func (*PoolAsync) GetCurrentJobSize ¶
Click to show internal directories.
Click to hide internal directories.