MCPcopy Index your code

hub / github.com/alitto/pond / functions

Functions262 in github.com/alitto/pond

MethodLen
Len returns the number of elements in the buffer that haven't yet been read
internal/linkedbuffer/linkedbuffer.go:103
MethodMaxConcurrency
()
pool.go:167
FunctionNewCompositeFuture
(ctx context.Context)
internal/future/composite.go:38
MethodNewGroup
Creates a new task group.
result.go:41
MethodNewGroup
()
result.go:51
MethodNewGroup
()
pool.go:542
MethodNewGroupContext
Creates a new task group with the specified context.
result.go:44
MethodNewGroupContext
(ctx context.Context)
result.go:55
MethodNewGroupContext
(ctx context.Context)
pool.go:546
FunctionNewLinkedBuffer
(initialCapacity, maxCapacity int)
internal/linkedbuffer/linkedbuffer.go:22
FunctionNewResultPool
NewResultPool creates a new result pool with the given maximum concurrency and options. Result pools are generic pools that can be used to submit task
result.go:111
MethodNewSubpool
Creates a new subpool with the specified maximum concurrency and options.
result.go:38
MethodNewSubpool
(maxConcurrency int, options ...Option)
result.go:98
MethodNewSubpool
(maxConcurrency int, options ...Option)
pool.go:538
FunctionNewValueFuture
(ctx context.Context)
internal/future/value.go:39
MethodNonBlocking
()
pool.go:207
FunctionNotPanics
** * Asserts that the function not panics. */
internal/assert/assert.go:61
MethodQueueSize
()
pool.go:203
MethodRead
Read reads values from the buffer and returns the number of elements read
internal/linkedbuffer/linkedbuffer.go:68
MethodResize
(maxConcurrency int)
pool.go:174
MethodRun
()
task.go:21
MethodRunningWorkers
()
pool.go:211
MethodStop
Stops the group and cancels all remaining tasks. Running tasks are not interrupted.
group.go:36
MethodStop
Stops the group and cancels all remaining tasks. Running tasks are not interrupted.
group.go:67
MethodStop
()
group.go:87
MethodStopAndWait
()
pool.go:534
MethodSubmit
(task func() R)
result.go:59
MethodSubmit
Submits a task to the group.
group.go:51
MethodSubmit
(tasks ...T)
group.go:95
MethodSubmit
(tasks ...func())
group.go:155
MethodSubmit
(tasks ...func() O)
group.go:177
MethodSubmit
(task func())
pool.go:319
MethodSubmitErr
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 task function must return a
result.go:22
MethodSubmitErr
(task func() (R, error))
result.go:64
MethodSubmitErr
Submits a task to the group that can return an error.
group.go:54
MethodSubmitErr
(tasks ...E)
group.go:103
MethodSubmitErr
(tasks ...func() error)
group.go:160
MethodSubmitErr
(tasks ...func() (O, error))
group.go:182
MethodSubmitErr
(task func() error)
pool.go:324
MethodSubmittedTasks
()
pool.go:215
MethodSuccessfulTasks
()
pool.go:227
FunctionTestBuffer
(t *testing.T)
internal/linkedbuffer/buffer_test.go:11
FunctionTestBufferWithPointerToLargeObject
(t *testing.T)
internal/linkedbuffer/buffer_test.go:44
FunctionTestCompositeFutureCancel
(t *testing.T)
internal/future/composite_test.go:206
FunctionTestCompositeFutureResolveWithIndexOutOfRange
(t *testing.T)
internal/future/composite_test.go:58
FunctionTestCompositeFutureWait
(t *testing.T)
internal/future/composite_test.go:12
FunctionTestCompositeFutureWaitBeforeContextCanceled
(t *testing.T)
internal/future/composite_test.go:128
FunctionTestCompositeFutureWaitBeforeResoluion
(t *testing.T)
internal/future/composite_test.go:113
FunctionTestCompositeFutureWaitWithCanceledContext
(t *testing.T)
internal/future/composite_test.go:45
FunctionTestCompositeFutureWaitWithContextCanceledAfterResolution
(t *testing.T)
internal/future/composite_test.go:144
FunctionTestCompositeFutureWaitWithError
(t *testing.T)
internal/future/composite_test.go:28
FunctionTestCompositeFutureWithErrorsAndMultipleDone
(t *testing.T)
internal/future/composite_test.go:183
FunctionTestCompositeFutureWithErrorsAndMultipleWait
(t *testing.T)
internal/future/composite_test.go:89
FunctionTestCompositeFutureWithMultipleDone
(t *testing.T)
internal/future/composite_test.go:158
FunctionTestCompositeFutureWithMultipleWait
(t *testing.T)
internal/future/composite_test.go:66
FunctionTestFutureDone
(t *testing.T)
internal/future/future_test.go:57
FunctionTestFutureResolutionError
(t *testing.T)
internal/future/future_test.go:75
FunctionTestFutureWait
(t *testing.T)
internal/future/future_test.go:12
FunctionTestFutureWaitWithCanceledContext
(t *testing.T)
internal/future/future_test.go:42
FunctionTestFutureWaitWithError
(t *testing.T)
internal/future/future_test.go:25
FunctionTestInvokeTaskHandlesPanicByDefault
(t *testing.T)
task_test.go:10
FunctionTestInvokeTaskWithoutPanicRecoveryPanics
(t *testing.T)
task_test.go:24
FunctionTestLinkedBuffer
(t *testing.T)
internal/linkedbuffer/linkedbuffer_test.go:10
FunctionTestLinkedBufferLen
(t *testing.T)
internal/linkedbuffer/linkedbuffer_test.go:49
FunctionTestLinkedBufferWithReusedBuffer
(t *testing.T)
internal/linkedbuffer/linkedbuffer_test.go:70
FunctionTestNewGroup
(t *testing.T)
default_test.go:48
FunctionTestNewPoolWithInvalidMaxConcurrency
(t *testing.T)
pool_test.go:242
FunctionTestNewSubpool
(t *testing.T)
default_test.go:67
FunctionTestPoolDefaultHasPanicRecoveryEnabled
(t *testing.T)
pool_test.go:80
FunctionTestPoolMetrics
(t *testing.T)
pool_test.go:187
FunctionTestPoolResize
(t *testing.T)
pool_test.go:410
FunctionTestPoolResizeWithNegativeMaxConcurrency
(t *testing.T)
pool_test.go:502
FunctionTestPoolResizeWithZeroMaxConcurrency
(t *testing.T)
pool_test.go:494
FunctionTestPoolStopAndWaitShouldNotDeadlockWhenContextCanceledWithQueuedTasks
(t *testing.T)
pool_test.go:141
FunctionTestPoolStoppedAfterCancel
(t *testing.T)
pool_test.go:248
FunctionTestPoolSubmit
(t *testing.T)
pool_test.go:17
FunctionTestPoolSubmitAndWait
(t *testing.T)
pool_test.go:36
FunctionTestPoolSubmitOnStoppedPool
(t *testing.T)
pool_test.go:224
FunctionTestPoolSubmitWhileStopping
(t *testing.T)
pool_test.go:571
FunctionTestPoolSubmitWhileStoppingHasNoRace
Test that submitting tasks while the pool is stopping doesn't lead to a data race. Author: https://github.com/korotin
pool_test.go:624
FunctionTestPoolSubmitWithErr
(t *testing.T)
pool_test.go:96
FunctionTestPoolSubmitWithPanic
(t *testing.T)
pool_test.go:51
FunctionTestPoolTrySubmit
(t *testing.T)
pool_test.go:651
FunctionTestPoolTrySubmitErr
(t *testing.T)
pool_test.go:691
FunctionTestPoolWithContextCanceled
(t *testing.T)
pool_test.go:109
FunctionTestPoolWithQueueSize
(t *testing.T)
pool_test.go:282
FunctionTestPoolWithQueueSizeAndNonBlocking
(t *testing.T)
pool_test.go:303
FunctionTestPoolWithQueueSizeOne
(t *testing.T)
pool_test.go:508
FunctionTestPoolWithQueueSizeZero
(t *testing.T)
pool_test.go:348
FunctionTestPoolWithoutPanicRecoveryOption
(t *testing.T)
pool_test.go:88
FunctionTestResultBackwardCompatibility
verifies that the deprecated Result interface and ResultTask are compatible. by assigning ResultTask to Result, testing for compatibility
result_test.go:228
FunctionTestResultInterfaceCompatibility
ensures that a function expecting Result[T] can accept a ResultTask[T] testing for usage pattern
result_test.go:280
FunctionTestResultPoolMetrics
(t *testing.T)
result_test.go:43
FunctionTestResultPoolSubmitAndWait
(t *testing.T)
result_test.go:13
FunctionTestResultPoolSubmitContextCanceled
(t *testing.T)
result_test.go:297
FunctionTestResultPoolSubmitTaskWithPanic
(t *testing.T)
result_test.go:28
FunctionTestResultPoolSubpool
(t *testing.T)
result_test.go:79
FunctionTestResultPoolTrySubmit
(t *testing.T)
result_test.go:115
FunctionTestResultPoolTrySubmitErr
(t *testing.T)
result_test.go:170
FunctionTestResultSubpoolMaxConcurrency
(t *testing.T)
result_test.go:99
← previousnext →101–200 of 262, ranked by callers