MCPcopy Index your code
hub / github.com/sourcegraph/conc / init

Method init

stream/stream.go:110–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108}
109
110func (s *Stream) init() {
111 s.initOnce.Do(func() {
112 s.queue = make(chan callbackCh, s.pool.MaxGoroutines()+1)
113
114 // Start the callbacker.
115 s.callbackerHandle.Go(s.callbacker)
116 })
117}
118
119// callbacker is responsible for calling the returned callbacks in the order
120// they were submitted. There is only a single instance of callbacker running.

Callers 2

GoMethod · 0.95
WaitMethod · 0.95

Calls 2

MaxGoroutinesMethod · 0.45
GoMethod · 0.45

Tested by

no test coverage detected