Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool interface {
Name() string
// SetCap sets the goroutine capacity of the pool.
SetCap(cap int32)
// Go executes f.
Go(fn func(), panicHandler func(context.Context))
// GoCtx executes f and accepts the context.
GoCtx(ctx context.Context, f func(), panicHandler func(context.Context))
// SetPanicHandler sets the panic handler.
SetPanicHandler(f func(context.Context))
// WorkerCount returns the number of running workers
WorkerCount() int32
}
Click to show internal directories.
Click to hide internal directories.