MCPcopy Index your code

hub / github.com/alitto/pond / functions

Functions262 in github.com/alitto/pond

↓ 438 callersFunctionEqual
** * Asserts that the expected and actual values are equal. */
internal/assert/assert.go:8
↓ 117 callersMethodWait
Wait waits for the task to complete and returns any error that occurred.
future.go:10
↓ 79 callersMethodSubmit
Submits a task to the pool and returns a future that can be used to wait for the task to complete. The pool will not accept new tasks after it has bee
pool.go:107
↓ 47 callersFunctionNewPool
NewPool creates a new pool with the given maximum concurrency and options. The new maximum concurrency must be greater than or equal to 0 (0 means no
pool.go:603
↓ 39 callersMethodStopAndWait
Stops the pool and waits for all tasks to complete.
pool.go:84
↓ 36 callersFunctionTrue
** * Asserts that the actual value is true. */
internal/assert/assert.go:18
↓ 34 callersMethodRunningWorkers
Returns the number of worker goroutines that are currently active (executing a task) in the pool.
pool.go:40
↓ 30 callersMethodDone
Done returns a channel that is closed when the task is complete or has failed.
future.go:7
↓ 28 callersMethodCompletedTasks
Returns the total number of tasks that have completed (either successfully or with an error). Tasks accepted by the pool but canceled before execution
pool.go:56
↓ 27 callersMethodSubmitErr
Submits a task to the pool and returns a future that can be used to wait for the task to complete. The task function must return an error. The pool wi
pool.go:113
↓ 26 callersMethodSubmittedTasks
Returns the total number of tasks submitted to the pool since its creation.
pool.go:43
↓ 21 callersMethodFailedTasks
Returns the number of tasks that have completed with an error.
pool.go:49
↓ 21 callersMethodNewSubpool
Creates a new subpool with the specified maximum concurrency and options.
pool.go:129
↓ 21 callersMethodSuccessfulTasks
Returns the number of tasks that have completed successfully.
pool.go:52
↓ 19 callersMethodWaitingTasks
Returns the number of tasks that are currently waiting in the pool's queue.
pool.go:46
↓ 15 callersMethodDroppedTasks
Returns the number of tasks that have been dropped because the queue was full.
pool.go:59
↓ 15 callersMethodMaxConcurrency
Returns the maximum concurrency of the pool.
pool.go:66
↓ 15 callersMethodNewGroup
Creates a new task group.
pool.go:132
↓ 15 callersMethodStop
Stops the pool and returns a future that can be used to wait for all tasks pending to complete. The pool will not accept new tasks after it has been s
pool.go:81
↓ 15 callersMethodWrite
Write writes a value to the buffer. If the buffer is full, it returns an EOF error.
internal/linkedbuffer/buffer.go:38
↓ 14 callersMethodRead
Read reads a value from the buffer. If the buffer is empty, it returns an EOF error. If the buffer has been read completely, it returns an EOF error.
internal/linkedbuffer/buffer.go:52
↓ 13 callersMethodError
()
internal/future/future.go:53
↓ 12 callersFunctionWithQueueSize
WithQueueSize sets the max number of elements that can be queued in the pool.
pooloptions.go:17
↓ 11 callersMethodLen
Len returns the number of elements in the buffer.
internal/linkedbuffer/buffer.go:32
↓ 10 callersMethodErr
()
internal/future/future.go:20
↓ 8 callersFunctionWithContext
WithContext sets the context for the pool.
pooloptions.go:10
↓ 7 callersMethodCanceledTasks
Returns the number of tasks accepted by the pool that were canceled before executing user code due to pool context cancellation.
pool.go:63
↓ 7 callersFunctionPanicsWithError
** * Asserts that the function panics with the expected error. */
internal/assert/assert.go:42
↓ 6 callersMethodNewGroupContext
Creates a new task group with the specified context.
pool.go:135
↓ 6 callersMethodReadCount
ReadCount returns the number of elements read from the buffer since it was created
internal/linkedbuffer/linkedbuffer.go:98
↓ 6 callersMethodResize
Resizes the pool by changing the maximum concurrency (number of workers) of the pool. The new max concurrency must be greater than 0. If the new max c
pool.go:92
↓ 6 callersMethodTrySubmit
Attempts to submit a task to the pool and returns a future that can be used to wait for the task to complete and a boolean indicating whether the task
pool.go:119
↓ 5 callersMethodContext
Returns the context associated with this pool.
pool.go:77
↓ 5 callersMethodGo
Submits a task to the pool without waiting for it to complete. The pool will not accept new tasks after it has been stopped. If the pool has been stop
pool.go:102
↓ 5 callersFunctionNewFuture
(ctx context.Context)
internal/future/future.go:37
↓ 5 callersMethodStopped
Returns true if the pool has been stopped or its context has been cancelled.
pool.go:87
↓ 5 callersMethodTrySubmitErr
Attempts to submit a task to the pool and returns a future that can be used to wait for the task to complete and a boolean indicating whether the task
pool.go:126
↓ 5 callersFunctionnewPool
(maxConcurrency int, parent *pool, options ...Option)
pool.go:550
↓ 5 callersMethodupdateMetrics
(err error)
pool.go:507
↓ 4 callersMethodCap
Cap returns the capacity of the buffer.
internal/linkedbuffer/buffer.go:27
↓ 4 callersMethodTrySubmit
Attempts to submit a task to the pool and returns a future that can be used to wait for the task to complete and a boolean indicating whether the task
result.go:28
↓ 4 callersMethodTrySubmitErr
Attempts to submit a task to the pool and returns a future that can be used to wait for the task to complete and a boolean indicating whether the task
result.go:35
↓ 4 callersMethodWait
Waits for all tasks in the group to complete. If any of the tasks return an error, the group will return the first error encountered. If the context i
group.go:30
↓ 4 callersMethodnotifySubmitWaiter
()
pool.go:498
↓ 4 callersMethodreadTask
()
pool.go:462
↓ 4 callersMethodsubmit
(task any, nonBlocking bool)
result.go:77
↓ 4 callersMethodsubmit
(task any, nonBlocking bool)
pool.go:361
↓ 4 callersMethodwrapAndSubmit
(task any, nonBlocking bool)
pool.go:337
↓ 3 callersMethodDone
Returns a channel that is closed when all tasks in the group have completed, a task returns an error, or the group is stopped.
group.go:33
↓ 3 callersMethodQueueSize
Returns the size of the task queue.
pool.go:69
↓ 3 callersFunctionSubmit
Submit submits a task to the default pool and returns a future that can be used to wait for the task to complete.
default.go:7
↓ 3 callersMethodSubmit
Submits a task to the pool and returns a future that can be used to wait for the task to complete and get the result. The pool will not accept new tas
result.go:16
↓ 3 callersMethodWait
Wait waits for the future to complete and returns any error that occurred.
internal/future/future.go:33
↓ 3 callersMethodWriteCount
WriteCount returns the number of elements written to the buffer since it was created
internal/linkedbuffer/linkedbuffer.go:93
↓ 3 callersMethodlaunchWorker
(task any)
pool.go:451
↓ 2 callersMethodCancel
(cause error)
internal/future/composite.go:77
↓ 2 callersMethodContext
Returns the context associated with this group. This context will be cancelled when either the parent context is cancelled or any task in the group re
group.go:41
↓ 2 callersMethodNonBlocking
Returns true if the pool is non-blocking, meaning that it will not block when the task queue is full. In a non-blocking pool, tasks that cannot be sub
pool.go:74
↓ 2 callersMethodResult
()
internal/future/value.go:21
↓ 2 callersMethodStopped
()
pool.go:163
↓ 2 callersMethodSubmit
Submits a task to the group.
group.go:20
↓ 2 callersMethodSubmitErr
Submits a task to the group that can return an error.
group.go:23
↓ 2 callersFunctionWithNonBlocking
WithNonBlocking sets the pool to be non-blocking when the queue is full. This option is only effective when the queue size is set.
pooloptions.go:25
↓ 2 callersMethodgetResult
(count int)
internal/future/composite.go:143
↓ 2 callersFunctioninvokeTask
(task any, panicRecovery bool)
task.go:58
↓ 2 callersFunctionnewTaskGroup
(pool *pool, ctx context.Context)
group.go:205
↓ 2 callersMethodnotifyListeners
()
internal/future/composite.go:174
↓ 2 callersMethodsubmit
(task any)
group.go:111
↓ 2 callersMethodtrySubmit
(task any)
pool.go:398
↓ 2 callersFunctionwrapTask
(task any, callback C, ctx context.Context, panicRecovery bool)
task.go:47
↓ 1 callersMethodContext
()
pool.go:159
↓ 1 callersMethodDone
()
internal/future/future.go:16
↓ 1 callersFunctionNewGroup
NewGroup creates a new task group with the default pool.
default.go:17
↓ 1 callersFunctionNewSubpool
NewSubpool creates a new subpool with the default pool.
default.go:22
↓ 1 callersFunctionPanicsWith
** * Asserts that the function panics with the expected object. */
internal/assert/assert.go:28
↓ 1 callersMethodStop
()
pool.go:519
↓ 1 callersFunctionSubmitErr
SubmitErr submits a task to the default pool and returns a future that can be used to wait for the task to complete.
default.go:12
↓ 1 callersFunctionWithoutPanicRecovery
WithoutPanicRecovery disables panic interception inside worker goroutines. When this option is enabled, panics inside tasks will propagate just like r
pooloptions.go:33
↓ 1 callersMethodblockingTrySubmit
(task any)
pool.go:378
↓ 1 callersFunctionfetchURL
(ctx context.Context, url string)
examples/task_group/main.go:12
↓ 1 callersFunctiongenerateTasks
(count int, duration time.Duration)
examples/task_group_context/main.go:36
↓ 1 callersFunctionsubmitTasks
(pool pond.Pool)
examples/prometheus/main.go:82
↓ 1 callersMethodsubpoolWorker
(task any)
pool.go:279
↓ 1 callersMethodworker
(task any)
pool.go:243
↓ 1 callersMethodwrapTask
(task any)
pool.go:352
MethodCanceledTasks
()
pool.go:239
MethodCompletedTasks
()
pool.go:231
MethodContext
()
group.go:91
MethodContext
()
internal/future/composite.go:73
MethodDone
Returns a channel that is closed when all tasks in the group have completed, a task returns an error, or the group is stopped.
group.go:64
MethodDone
()
group.go:83
MethodDone
Done returns a channel that is closed when the task is complete or has failed.
future.go:17
MethodDone
Done returns a channel that is closed when the task is complete or has failed.
future.go:30
MethodDone
()
internal/future/value.go:17
MethodDone
(count int)
internal/future/composite.go:50
MethodDroppedTasks
()
pool.go:235
MethodError
()
internal/future/value.go:57
MethodError
()
internal/future/composite.go:21
MethodFailedTasks
()
pool.go:223
MethodGo
(task func())
pool.go:315
next →1–100 of 262, ranked by callers