MCPcopy Index your code
hub / github.com/coder/coder / Start

Method Start

coderd/x/chatd/chatd.go:4346–4349  ·  view source on GitHub ↗

Start runs the background acquire/wake loop that picks up pending chats and processes them. Callers that want a passive server (e.g. tests) can skip this call; heartbeat, stream janitor, and stale recovery still run.

()

Source from the content-addressed store, hash-verified

4344// server (e.g. tests) can skip this call; heartbeat, stream
4345// janitor, and stale recovery still run.
4346func (p *Server) Start() *Server {
4347 p.wg.Go(func() { p.acquireLoop(p.ctx) })
4348 return p
4349}
4350
4351func (p *Server) acquireLoop(ctx context.Context) {
4352 acquireTicker := p.clock.NewTicker(

Callers 1

realServerMethod · 0.95

Calls 2

acquireLoopMethod · 0.95
GoMethod · 0.80

Tested by

no test coverage detected