MCPcopy Create free account

hub / github.com/butuzov/harmony / functions

Functions62 in github.com/butuzov/harmony

↓ 16 callersFunctiongenerateNumberSequence
(start, finish int)
testing_test.go:67
↓ 8 callersFunctionOrDoneWithContext
--- OrDone Pattern --------------------------------------------------------- OrDoneWithContext will return a new unbuffered channel of type `T` that
with_context.go:136
↓ 7 callersFunctionFututeWithContext
--- Future Pattern --------------------------------------------------------- FututeWithContext[T any] will return buffered channel of size 1 and gene
with_context.go:115
↓ 5 callersFunctionOrDone
--- OrDone Pattern --------------------------------------------------------- OrDone will return a new unbuffered channel of type `T` that serves as a
with_done.go:136
↓ 5 callersFunctionPipelineWithContext
--- Pipeline Pattern ------------------------------------------------------- PipelineWithContext returns the channel of generic type `T2` that can se
with_context.go:175
↓ 4 callersFunctionFanInWithContext
--- Fan-in Pattern --------------------------------------------------------- FanInWithContext returns unbuffered channel of generic type `T` which se
with_context.go:61
↓ 3 callersFunctionQueueWithContext
--- Queue Pattern ----------------------------------------------------------- QueueWithContext returns an unbuffered channel that is populated by func
with_context.go:229
↓ 3 callersFunctionTee
--- Tee Pattern ------------------------------------------------------------- Tee will return two channels of generic type `T` used to fan-out data fr
with_done.go:256
↓ 3 callersFunctionTeeWithContext
--- Tee Pattern ------------------------------------------------------------- TeeWithContext will return two channels of generic type `T` used to fan-
with_context.go:256
↓ 3 callersFunctionWorkerPoolWithContext
--- WorkerPool Pattern ----------------------------------------------------- WorkerPoolWithContext accepts channel of generic type `T` which is used
with_context.go:293
↓ 3 callersFunctionpass
(done <-chan struct{}, wg *sync.WaitGroup, out chan<- T, in <-chan T)
with_done.go:88
↓ 3 callersFunctionpassWithContext
(ctx context.Context, wg *sync.WaitGroup, out chan<- T, in <-chan T)
with_context.go:88
↓ 2 callersFunctionBridge
--- Bridge Pattern --------------------------------------------------------- Bridge will return chan of generic type `T` used a pipe for the values r
with_done.go:19
↓ 2 callersFunctionBridgeWithContext
--- Bridge Pattern --------------------------------------------------------- BridgeWithContext will return chan of generic type `T` used a pipe for t
with_context.go:19
↓ 2 callersFunctionFanIn
--- Fan-in Pattern --------------------------------------------------------- FanIn returns unbuffered channel of generic type `T` which serves as del
with_done.go:61
↓ 2 callersFunctionFutute
--- Future Pattern --------------------------------------------------------- Futute[T any] will return buffered channel of size 1 and generic type `T
with_done.go:115
↓ 2 callersFunctionPipeline
--- Pipeline Pattern ------------------------------------------------------- Pipeline returns the channel of generic type `T2` that can serve as a pi
with_done.go:175
↓ 2 callersFunctionQueue
--- Queue Pattern ----------------------------------------------------------- Queue returns an unbuffered channel that is populated by func `genFn`. C
with_done.go:229
↓ 2 callersFunctionWorkerPool
--- WorkerPool Pattern ----------------------------------------------------- WorkerPool accepts channel of generic type `T` which is used to serve jo
with_done.go:293
↓ 2 callersFunctionsortKeyDesc
(m map[string]string)
cmd/internal/gendone/main.go:72
FunctionExampleFanInWithContext
()
examples_test.go:21
FunctionExampleFututeWithContext
()
examples_test.go:93
FunctionExampleFututeWithContext_dogs_as_service
FututeWithContext is shows creation of two "futures" that are used in our "rate our dogs" startup.
examples_test.go:50
FunctionExampleOrWithContext_Fibonacci
ExampleOrWithContext - shows how many fibonacci sequence numbers we can generate in one millisecond.
examples_test.go:104
FunctionExamplePipelineWithContext_Primes
()
examples_test.go:140
FunctionExampleQueueWithContext
Generate fibonacci sequence
examples_test.go:185
FunctionExampleTeeWithDone
()
examples_test.go:216
FunctionExampleWorkerPoolWithContext_Primes
()
examples_test.go:251
FunctionExample_fastestSqrt
Other Examples What SQRT funtion is faster? Complex example that shows the combination of few patterns Queue, Tee, FanIn patterns.
examples_test.go:305
FunctionTestBridge
--- Bridge Pattern ---------------------------------------------------------
with_done_test.go:17
FunctionTestBridgeWithContext
--- Bridge Pattern ---------------------------------------------------------
with_context_test.go:17
FunctionTestBridgeWithContextNil
(t *testing.T)
with_context_test.go:58
FunctionTestBridge_WhereDoneNil
(t *testing.T)
with_done_test.go:58
FunctionTestFanIn
--- Fan-in Pattern ---------------------------------------------------------
with_done_test.go:71
FunctionTestFanInWithContext
--- Fan-in Pattern ---------------------------------------------------------
with_context_test.go:71
FunctionTestFanInWithContextNil
(t *testing.T)
with_context_test.go:104
FunctionTestFanIn_WhereDoneNil
(t *testing.T)
with_done_test.go:104
FunctionTestFutute
--- Future Pattern ---------------------------------------------------------
with_done_test.go:121
FunctionTestFututeWithContext
--- Future Pattern ---------------------------------------------------------
with_context_test.go:121
FunctionTestFututeWithContextNil
(t *testing.T)
with_context_test.go:164
FunctionTestFutute_WhereDoneNil
(t *testing.T)
with_done_test.go:164
FunctionTestOr
--- OrDone Pattern ---------------------------------------------------------
with_done_test.go:177
FunctionTestOrWithContext
--- OrDone Pattern ---------------------------------------------------------
with_context_test.go:177
FunctionTestOrWithContextNil
(t *testing.T)
with_context_test.go:223
FunctionTestOr_WhereDoneNil
(t *testing.T)
with_done_test.go:223
FunctionTestPipeline
--- Pipeline Pattern -------------------------------------------------------
with_done_test.go:236
FunctionTestPipelineWithContext
--- Pipeline Pattern -------------------------------------------------------
with_context_test.go:236
FunctionTestPipelineWithContextNil
(t *testing.T)
with_context_test.go:269
FunctionTestPipeline_WhereDoneNil
(t *testing.T)
with_done_test.go:269
FunctionTestQueue
--- Queue Pattern -----------------------------------------------------------
with_done_test.go:282
FunctionTestQueueWithContext
--- Queue Pattern -----------------------------------------------------------
with_context_test.go:282
FunctionTestQueueWithContextNil
(t *testing.T)
with_context_test.go:319
FunctionTestQueue_WhereDoneNil
(t *testing.T)
with_done_test.go:319
FunctionTestTee
--- Tee Pattern -------------------------------------------------------------
with_done_test.go:332
FunctionTestTeeWithContext
--- Tee Pattern -------------------------------------------------------------
with_context_test.go:332
FunctionTestTeeWithContextNil
(t *testing.T)
with_context_test.go:390
FunctionTestTee_WhereDoneNil
(t *testing.T)
with_done_test.go:390
FunctionTestWorkerPool
--- WorkerPool Pattern -----------------------------------------------------
with_done_test.go:403
FunctionTestWorkerPoolWithContext
--- WorkerPool Pattern -----------------------------------------------------
with_context_test.go:403
FunctionTestWorkerPoolWithContextNil
(t *testing.T)
with_context_test.go:447
FunctionTestWorkerPool_WhereDoneNil
(t *testing.T)
with_done_test.go:447
Functionmain
()
cmd/internal/gendone/main.go:10