MCPcopy Create free account
hub / github.com/go-dev-frame/sponge / AsyncTaskPool

Struct AsyncTaskPool

pkg/sse/task.go:5–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import "sync"
4
5type AsyncTaskPool struct {
6 tasks chan func()
7 wg sync.WaitGroup
8}
9
10// NewAsyncTaskPool creates a task pool with a fixed capacity
11func NewAsyncTaskPool(maxWorkers int) *AsyncTaskPool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected