MCPcopy Index your code
hub / github.com/dc0d/workerpool

github.com/dc0d/workerpool @v5.0.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v5.0.2 ↗ · + Follow
30 symbols 90 edges 2 files 8 documented · 27%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

workerpool

License MIT Go Reference Go Report Card Maintainability Test Coverage

This Go Module contains an implementation of a workerpool which can get expanded & shrink dynamically. Workers can get added when needed and get dismissed when no longer are needed. Of-course this workerpool can be used just as a simple one with a fixed size.

Examples can be seen inside documents.

add as dependency modult

In the go.mod file of your code:

module github.com/user/project

go 1.15

require (
    github.com/dc0d/workerpool/v5 v5.0.1

    ...
)

And in the code, import it as:

import "github.com/dc0d/workerpool/v5"

Core symbols most depended-on inside this repo

Queue
called by 7
workerpool.go
Expand
called by 7
workerpool.go
Stop
called by 2
workerpool.go
stopped
called by 2
workerpool.go
initWorker
called by 2
workerpool.go
withPool
called by 2
workerpool.go
withPoolQuit
called by 2
workerpool.go
withTimeout
called by 2
workerpool.go

Shape

Method 15
Function 12
Struct 2
TypeAlias 1

Languages

Go100%

Modules by API surface

workerpool.go20 symbols
workerpool_usage_test.go10 symbols

For agents

$ claude mcp add workerpool \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact