MCPcopy Index your code

hub / github.com/sourcegraph/conc / types & classes

Types & classes18 in github.com/sourcegraph/conc

FuncTypeCallback
Callback is a function that is returned by a Task. Callbacks are called in the same order that tasks are submitted.
stream/stream.go:53
StructCatcher
Catcher is used to catch panics. You can execute a function with Try, which will catch any spawned panic. Try can be called any number of times, from
panics/panics.go:15
StructContextPool
ContextPool is a pool that runs tasks that take a context. A new ContextPool should be created with `New().WithContext(ctx)`. The configuration metho
pool/context_pool.go:12
StructErrRecovered
ErrRecovered wraps a panics.Recovered in an error implementation.
panics/panics.go:91
StructErrorPool
ErrorPool is a pool that runs tasks that may return an error. Errors are collected and returned by Wait(). The configuration methods (With*) will pan
pool/error_pool.go:17
StructIterator
Iterator can be used to configure the behaviour of ForEach and ForEachIdx. The zero value is safe to use with reasonable defaults. Iterator is also s
iter/iter.go:19
TypeAliasMapper
Mapper is an Iterator with a result type R. It can be used to configure the behaviour of Map and MapErr. The zero value is safe to use with reasonable
iter/map.go:14
StructPool
Pool is a pool of goroutines used to execute tasks concurrently. Tasks are submitted with Go(). Once all your tasks have been submitted, you must cal
pool/pool.go:30
StructRecovered
Recovered is a panic that was caught with recover().
panics/panics.go:64
StructResultContextPool
ResultContextPool is a pool that runs tasks that take a context and return a result. The context passed to the task will be canceled if any of the tas
pool/result_context_pool.go:14
StructResultErrorPool
ResultErrorPool is a pool that executes tasks that return a generic result type and an error. Tasks are executed in the pool with Go(), then the resul
pool/result_error_pool.go:17
StructResultPool
ResultPool is a pool that executes tasks that return a generic result type. Tasks are executed in the pool with Go(), then the results of the tasks ar
pool/result_pool.go:25
StructStream
Stream is used to execute a stream of tasks concurrently while maintaining the order of the results. To use a stream, you submit some number of `Task
stream/stream.go:38
FuncTypeTask
Task is a task that is submitted to the stream. Submitted tasks will be executed concurrently. It returns a callback that will be called after the tas
stream/stream.go:49
StructWaitGroup
WaitGroup is the primary building block for scoped concurrency. Goroutines can be spawned in the WaitGroup with the Go method, and calling Wait() will
waitgroup.go:22
TypeAliascallbackCh
stream/stream.go:138
TypeAliaslimiter
pool/pool.go:158
StructresultAggregator
resultAggregator is a utility type that lets us safely append from multiple goroutines. The zero value is valid and ready to use.
pool/result_pool.go:84