Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskPool ¶
type TaskPool struct { TaskPoolOptions // contains filtered or unexported fields }
task pool: manage task ts
type TaskPoolOption ¶
type TaskPoolOption func(*TaskPoolOptions)
func WithTaskPoolTaskPoolSize ¶
func WithTaskPoolTaskPoolSize(size int) TaskPoolOption
@size is the task queue pool size
func WithTaskPoolTaskQueueLength ¶
func WithTaskPoolTaskQueueLength(length int) TaskPoolOption
@length is the task queue length
func WithTaskPoolTaskQueueNumber ¶
func WithTaskPoolTaskQueueNumber(number int) TaskPoolOption
@number is the task queue number
type TaskPoolOptions ¶
type TaskPoolOptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.