Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/alitto/pond
/ functions
Functions
262 in github.com/alitto/pond
⨍
Functions
262
◇
Types & classes
30
Method
Len
Len returns the number of elements in the buffer that haven't yet been read
internal/linkedbuffer/linkedbuffer.go:103
Method
MaxConcurrency
()
pool.go:167
Function
NewCompositeFuture
(ctx context.Context)
internal/future/composite.go:38
Method
NewGroup
Creates a new task group.
result.go:41
Method
NewGroup
()
result.go:51
Method
NewGroup
()
pool.go:542
Method
NewGroupContext
Creates a new task group with the specified context.
result.go:44
Method
NewGroupContext
(ctx context.Context)
result.go:55
Method
NewGroupContext
(ctx context.Context)
pool.go:546
Function
NewLinkedBuffer
(initialCapacity, maxCapacity int)
internal/linkedbuffer/linkedbuffer.go:22
Function
NewResultPool
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
Method
NewSubpool
Creates a new subpool with the specified maximum concurrency and options.
result.go:38
Method
NewSubpool
(maxConcurrency int, options ...Option)
result.go:98
Method
NewSubpool
(maxConcurrency int, options ...Option)
pool.go:538
Function
NewValueFuture
(ctx context.Context)
internal/future/value.go:39
Method
NonBlocking
()
pool.go:207
Function
NotPanics
** * Asserts that the function not panics. */
internal/assert/assert.go:61
Method
QueueSize
()
pool.go:203
Method
Read
Read reads values from the buffer and returns the number of elements read
internal/linkedbuffer/linkedbuffer.go:68
Method
Resize
(maxConcurrency int)
pool.go:174
Method
Run
()
task.go:21
Method
RunningWorkers
()
pool.go:211
Method
Stop
Stops the group and cancels all remaining tasks. Running tasks are not interrupted.
group.go:36
Method
Stop
Stops the group and cancels all remaining tasks. Running tasks are not interrupted.
group.go:67
Method
Stop
()
group.go:87
Method
StopAndWait
()
pool.go:534
Method
Submit
(task func() R)
result.go:59
Method
Submit
Submits a task to the group.
group.go:51
Method
Submit
(tasks ...T)
group.go:95
Method
Submit
(tasks ...func())
group.go:155
Method
Submit
(tasks ...func() O)
group.go:177
Method
Submit
(task func())
pool.go:319
Method
SubmitErr
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
Method
SubmitErr
(task func() (R, error))
result.go:64
Method
SubmitErr
Submits a task to the group that can return an error.
group.go:54
Method
SubmitErr
(tasks ...E)
group.go:103
Method
SubmitErr
(tasks ...func() error)
group.go:160
Method
SubmitErr
(tasks ...func() (O, error))
group.go:182
Method
SubmitErr
(task func() error)
pool.go:324
Method
SubmittedTasks
()
pool.go:215
Method
SuccessfulTasks
()
pool.go:227
Function
TestBuffer
(t *testing.T)
internal/linkedbuffer/buffer_test.go:11
Function
TestBufferWithPointerToLargeObject
(t *testing.T)
internal/linkedbuffer/buffer_test.go:44
Function
TestCompositeFutureCancel
(t *testing.T)
internal/future/composite_test.go:206
Function
TestCompositeFutureResolveWithIndexOutOfRange
(t *testing.T)
internal/future/composite_test.go:58
Function
TestCompositeFutureWait
(t *testing.T)
internal/future/composite_test.go:12
Function
TestCompositeFutureWaitBeforeContextCanceled
(t *testing.T)
internal/future/composite_test.go:128
Function
TestCompositeFutureWaitBeforeResoluion
(t *testing.T)
internal/future/composite_test.go:113
Function
TestCompositeFutureWaitWithCanceledContext
(t *testing.T)
internal/future/composite_test.go:45
Function
TestCompositeFutureWaitWithContextCanceledAfterResolution
(t *testing.T)
internal/future/composite_test.go:144
Function
TestCompositeFutureWaitWithError
(t *testing.T)
internal/future/composite_test.go:28
Function
TestCompositeFutureWithErrorsAndMultipleDone
(t *testing.T)
internal/future/composite_test.go:183
Function
TestCompositeFutureWithErrorsAndMultipleWait
(t *testing.T)
internal/future/composite_test.go:89
Function
TestCompositeFutureWithMultipleDone
(t *testing.T)
internal/future/composite_test.go:158
Function
TestCompositeFutureWithMultipleWait
(t *testing.T)
internal/future/composite_test.go:66
Function
TestFutureDone
(t *testing.T)
internal/future/future_test.go:57
Function
TestFutureResolutionError
(t *testing.T)
internal/future/future_test.go:75
Function
TestFutureWait
(t *testing.T)
internal/future/future_test.go:12
Function
TestFutureWaitWithCanceledContext
(t *testing.T)
internal/future/future_test.go:42
Function
TestFutureWaitWithError
(t *testing.T)
internal/future/future_test.go:25
Function
TestInvokeTaskHandlesPanicByDefault
(t *testing.T)
task_test.go:10
Function
TestInvokeTaskWithoutPanicRecoveryPanics
(t *testing.T)
task_test.go:24
Function
TestLinkedBuffer
(t *testing.T)
internal/linkedbuffer/linkedbuffer_test.go:10
Function
TestLinkedBufferLen
(t *testing.T)
internal/linkedbuffer/linkedbuffer_test.go:49
Function
TestLinkedBufferWithReusedBuffer
(t *testing.T)
internal/linkedbuffer/linkedbuffer_test.go:70
Function
TestNewGroup
(t *testing.T)
default_test.go:48
Function
TestNewPoolWithInvalidMaxConcurrency
(t *testing.T)
pool_test.go:242
Function
TestNewSubpool
(t *testing.T)
default_test.go:67
Function
TestPoolDefaultHasPanicRecoveryEnabled
(t *testing.T)
pool_test.go:80
Function
TestPoolMetrics
(t *testing.T)
pool_test.go:187
Function
TestPoolResize
(t *testing.T)
pool_test.go:410
Function
TestPoolResizeWithNegativeMaxConcurrency
(t *testing.T)
pool_test.go:502
Function
TestPoolResizeWithZeroMaxConcurrency
(t *testing.T)
pool_test.go:494
Function
TestPoolStopAndWaitShouldNotDeadlockWhenContextCanceledWithQueuedTasks
(t *testing.T)
pool_test.go:141
Function
TestPoolStoppedAfterCancel
(t *testing.T)
pool_test.go:248
Function
TestPoolSubmit
(t *testing.T)
pool_test.go:17
Function
TestPoolSubmitAndWait
(t *testing.T)
pool_test.go:36
Function
TestPoolSubmitOnStoppedPool
(t *testing.T)
pool_test.go:224
Function
TestPoolSubmitWhileStopping
(t *testing.T)
pool_test.go:571
Function
TestPoolSubmitWhileStoppingHasNoRace
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
Function
TestPoolSubmitWithErr
(t *testing.T)
pool_test.go:96
Function
TestPoolSubmitWithPanic
(t *testing.T)
pool_test.go:51
Function
TestPoolTrySubmit
(t *testing.T)
pool_test.go:651
Function
TestPoolTrySubmitErr
(t *testing.T)
pool_test.go:691
Function
TestPoolWithContextCanceled
(t *testing.T)
pool_test.go:109
Function
TestPoolWithQueueSize
(t *testing.T)
pool_test.go:282
Function
TestPoolWithQueueSizeAndNonBlocking
(t *testing.T)
pool_test.go:303
Function
TestPoolWithQueueSizeOne
(t *testing.T)
pool_test.go:508
Function
TestPoolWithQueueSizeZero
(t *testing.T)
pool_test.go:348
Function
TestPoolWithoutPanicRecoveryOption
(t *testing.T)
pool_test.go:88
Function
TestResultBackwardCompatibility
verifies that the deprecated Result interface and ResultTask are compatible. by assigning ResultTask to Result, testing for compatibility
result_test.go:228
Function
TestResultInterfaceCompatibility
ensures that a function expecting Result[T] can accept a ResultTask[T] testing for usage pattern
result_test.go:280
Function
TestResultPoolMetrics
(t *testing.T)
result_test.go:43
Function
TestResultPoolSubmitAndWait
(t *testing.T)
result_test.go:13
Function
TestResultPoolSubmitContextCanceled
(t *testing.T)
result_test.go:297
Function
TestResultPoolSubmitTaskWithPanic
(t *testing.T)
result_test.go:28
Function
TestResultPoolSubpool
(t *testing.T)
result_test.go:79
Function
TestResultPoolTrySubmit
(t *testing.T)
result_test.go:115
Function
TestResultPoolTrySubmitErr
(t *testing.T)
result_test.go:170
Function
TestResultSubpoolMaxConcurrency
(t *testing.T)
result_test.go:99
← previous
next →
101–200 of 262, ranked by callers