MCPcopy Index your code
hub / github.com/ByteStorage/FlyDB / Pool

Interface Pool

lib/pool/pool.go:11–18  ·  view source on GitHub ↗

Pool is a connection pool interface

Source from the content-addressed store, hash-verified

9
10// Pool is a connection pool interface
11type Pool interface {
12 // GetTask get a task from pool
13 GetTask() (*Task, error)
14 // PutTask put a task into pool
15 PutTask(task *Task) error
16 // GetTaskNum get the number of tasks in the pool
17 GetTaskNum() int
18}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected