Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Effective-Concurrency-in-Go
/ functions
Functions
119 in github.com/PacktPublishing/Effective-Concurrency-in-Go
⨍
Functions
119
◇
Types & classes
36
↓ 35 callers
Method
Done
()
chapter2/waitgroup/waitgroup.go:28
↓ 21 callers
Method
Add
(delta int)
chapter2/waitgroup/waitgroup.go:13
↓ 18 callers
Method
Wait
()
chapter2/waitgroup/waitgroup.go:40
↓ 8 callers
Method
Close
()
chapter10/unresponsive_service/main.go:75
↓ 6 callers
Function
cancelablePipelineStage
(input <-chan IN, done <-chan struct{}, process func(IN) OUT)
chapter5/pipeline/fanin.go:10
↓ 5 callers
Function
philosopher
(index int, leftFork, rightFork *sync.Mutex)
chapter4/dining-philosophers/mutex/main.go:10
↓ 5 callers
Function
philosopher
(index int, leftFork, rightFork chan bool)
chapter4/dining-philosophers/chan/main.go:9
↓ 5 callers
Function
philosopher
(index int, firstFork, secondFork *sync.Mutex)
chapter4/dining-philosophers/ordered/main.go:10
↓ 3 callers
Function
GetRequestID
(ctx context.Context)
chapter8/context/requestid/main.go:18
↓ 3 callers
Method
Stream
(ctx context.Context, req Request)
chapter8/streams/store/store.go:23
↓ 3 callers
Function
encode
(input Record)
chapter5/pipeline/main.go:43
↓ 3 callers
Function
initDB
(dbName string)
chapter8/streams/main.go:22
↓ 3 callers
Function
pipelineStage
(input <-chan IN, output chan<- OUT, process func(IN) OUT)
chapter5/pipeline/asynchpipeline.go:9
↓ 3 callers
Function
workerPoolPipelineStage
(input <-chan IN, output chan<- OUT, process func(IN) OUT, numWorkers int)
chapter5/pipeline/asynchworkerpipeline.go:10
↓ 2 callers
Function
EncodeFromChan
(input <-chan T, encode func(T) ([]byte, error), out io.Writer)
chapter8/streams/main.go:133
↓ 2 callers
Method
Get
(ID string)
chapter2/cache/main.go:35
↓ 2 callers
Method
GetStats
(context.Context, string)
chapter8/server/dashboard/main.go:19
↓ 2 callers
Method
GetTransactions
(context.Context, string)
chapter8/server/dashboard/main.go:23
↓ 2 callers
Method
Listen
()
chapter8/server/tcp/main.go:23
↓ 2 callers
Method
Wait
()
chapter4/rate-limiter/simple/main.go:22
↓ 2 callers
Method
Wait
()
chapter4/rate-limiter/channel/main.go:15
↓ 2 callers
Method
WaitForConnections
(timeout time.Duration)
chapter8/server/tcp/main.go:46
↓ 2 callers
Function
WithRequestID
(ctx context.Context)
chapter8/context/requestid/main.go:14
↓ 2 callers
Function
consumer
(index int, wg *sync.WaitGroup, input <-chan int)
chapter4/producer-consumer/main.go:27
↓ 2 callers
Method
getSequence
()
chapter5/pipeline/orderedfanin.go:11
↓ 2 callers
Function
philosopher
(firstFork, secondFork *sync.Mutex)
chapter10/stacktrace/deadlock/main.go:7
↓ 2 callers
Function
producer
(index int, wg *sync.WaitGroup, done chan struct{}, output chan<- int)
chapter4/producer-consumer/main.go:10
↓ 1 callers
Method
Call
(ctx context.Context, req Req)
chapter10/unresponsive_service/main.go:92
↓ 1 callers
Function
CancelSupport
()
chapter9/cancel/main.go:10
↓ 1 callers
Function
ConcurrencyLimiter
(sem chan struct{}, next http.HandlerFunc)
chapter8/server/dashboard/main.go:164
↓ 1 callers
Method
Dequeue
Dequeue removes a value from the queue. Returns 0,false if queue is empty
chapter2/condition/main.go:40
↓ 1 callers
Method
Enqueue
Enqueue adds a value to the queue. Returns false if queue is full
chapter2/condition/main.go:27
↓ 1 callers
Method
Get
()
chapter9/progress/main.go:20
↓ 1 callers
Method
GetDashboardData
(ctx context.Context, userID string)
chapter8/server/dashboard/main.go:54
↓ 1 callers
Function
GetUserID
(ctx context.Context)
chapter8/server/dashboard/main.go:148
↓ 1 callers
Function
NewChannelRate
(rate float64, limit int)
chapter4/rate-limiter/channel/main.go:24
↓ 1 callers
Function
NewDashboardService
()
chapter8/server/dashboard/main.go:39
↓ 1 callers
Function
NewLimiter
(rate int, limit int)
chapter4/rate-limiter/simple/main.go:53
↓ 1 callers
Function
NewMonitor
(callTimeout time.Duration, alertTimeout time.Duration, maxActive int, call func(Req) (Rsp, error))
chapter10/unresponsive_service/main.go:31
↓ 1 callers
Function
NewQueue
NewQueue initializes an empty circular queue with the given capacity
chapter2/condition/main.go:17
↓ 1 callers
Method
Progress
()
chapter9/progress/main.go:16
↓ 1 callers
Method
SetDashboardConfig
(ctx context.Context, userID string, params DashboardParams)
chapter8/server/dashboard/main.go:113
↓ 1 callers
Method
StopListener
()
chapter8/server/tcp/main.go:42
↓ 1 callers
Function
WithUserID
(ctx context.Context, userID string)
chapter8/server/dashboard/main.go:144
↓ 1 callers
Function
computeNewCopy
(in SomeStruct)
chapter9/cas/main.go:15
↓ 1 callers
Function
convert
(input Record)
chapter5/pipeline/main.go:37
↓ 1 callers
Function
fanIn
(done <-chan struct{}, channels ...<-chan T)
chapter5/pipeline/fanin.go:29
↓ 1 callers
Function
httpMain
()
chapter8/streams/main.go:238
↓ 1 callers
Function
longGoroutine
(ctx context.Context, pm *ProgressMeter)
chapter9/progress/main.go:24
↓ 1 callers
Function
longRunningProcess
(heartbeat, done chan struct{})
chapter7/heartbeat2/main.go:9
↓ 1 callers
Function
longRunningProcess
(heartbeat, done chan struct{})
chapter7/heartbeat/main.go:9
↓ 1 callers
Function
monitor
(heartbeat, done chan struct{}, tick <-chan time.Time)
chapter7/heartbeat2/main.go:23
↓ 1 callers
Function
monitor
Monitor a long-running function that sends information to heartbeat channel every so often. At least one notification must arrive between every tick.
chapter7/heartbeat/main.go:26
↓ 1 callers
Function
newRecord
(in []string)
chapter5/pipeline/main.go:16
↓ 1 callers
Function
observer
(ctx context.Context, cancel func(), progress *ProgressMeter)
chapter9/progress/main.go:37
↓ 1 callers
Function
orderedFanIn
(done <-chan struct{}, channels ...<-chan T)
chapter5/pipeline/orderedfanin.go:20
↓ 1 callers
Function
parse
(input []string)
chapter5/pipeline/main.go:29
↓ 1 callers
Function
restart
(done chan struct{}, f func(done, heartBeat chan struct{}), timeout time.Duration)
chapter10/heal/main.go:26
↓ 1 callers
Function
retrieveData
(ID string)
chapter2/cache/main.go:25
↓ 1 callers
Function
updateSharedValue
(index int)
chapter9/cas/main.go:19
↓ 1 callers
Function
worker
(jobs chan Work)
chapter5/workerpool/wp2/main.go:25
↓ 1 callers
Function
worker
(jobs chan Work)
chapter5/workerpool/wp1/main.go:18
Function
Authenticate
(authenticator func(*http.Request) (string, error), next http.HandlerFunc)
chapter8/server/dashboard/main.go:153
Method
Close
()
chapter4/rate-limiter/channel/main.go:19
Method
DashboardHandler
(w http.ResponseWriter, req *http.Request)
chapter8/server/dashboard/main.go:116
Function
DecodeToChan
(decode func(*T) error)
chapter8/websocket-chat/chat.go:36
Function
DecodeToChan
(decode func(*T) error)
chapter8/streams/main.go:113
Function
EncodeFromChan
(input <-chan T, encode func(T) ([]byte, error), out io.Writer)
chapter8/websocket-chat/chat.go:15
Function
ErrFilter
(in <-chan store.Entry)
chapter8/streams/filters/err.go:7
Method
GetStats
(context.Context, string)
chapter8/server/dashboard/main.go:29
Method
GetTransactions
(context.Context, string)
chapter8/server/dashboard/main.go:33
Function
Limit
(maxSize int64, next http.HandlerFunc)
chapter8/server/dashboard/main.go:133
Function
MinFilter
(min float64, in <-chan store.Entry)
chapter8/streams/filters/min.go:7
Function
MovingAvg
(threshold float64, windowSize int, in <-chan store.Entry)
chapter8/streams/filters/movingavg.go:12
Function
SlowFunc
(req *Request)
chapter10/unresponsive_service/main.go:79
Function
asynchronousPipeline
(input *csv.Reader)
chapter5/pipeline/asynchpipeline.go:16
Function
asynchronousPipeline2Workers
(input *csv.Reader)
chapter5/pipeline/asynchworkerpipeline.go:28
Function
fanOutFanIn
(input *csv.Reader)
chapter5/pipeline/fanin.go:56
Method
getSequence
()
chapter5/pipeline/main.go:51
Function
longRunning
(done, heartBeat chan struct{})
chapter10/heal/main.go:9
Function
main
()
chapter7/heartbeat2/main.go:47
Function
main
()
chapter7/simple-ticker/main.go:8
Function
main
()
chapter7/heartbeat/main.go:50
Function
main
()
chapter7/ticker-slow-receiver/main.go:8
Function
main
()
chapter7/timer-cancel/main.go:8
Function
main
()
chapter5/pipeline/main.go:53
Function
main
()
chapter5/workerpool/wp2/main.go:50
Function
main
()
chapter5/workerpool/wp1/main.go:38
Function
main
()
chapter8/websocket-chat/client/main.go:14
Function
main
()
chapter8/websocket-chat/server/main.go:13
Function
main
()
chapter8/context/timeouts/main.go:10
Function
main
()
chapter8/context/cancellation/main.go:9
Function
main
()
chapter8/context/requestid/main.go:23
Function
main
()
chapter8/streams/main.go:320
Function
main
()
chapter8/server/dashboard/main.go:172
Function
main
()
chapter8/server/tcp/main.go:59
Function
main
()
chapter2/cache/main.go:60
Function
main
()
chapter2/signal/main.go:14
Function
main
()
chapter2/workers/main.go:16
Function
main
()
chapter2/condition/main.go:52
next →
1–100 of 119, ranked by callers