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

Method signalWake

coderd/x/chatd/chatd.go:4388–4393  ·  view source on GitHub ↗

signalWake wakes the run loop so it calls processOnce immediately. Non-blocking: if a signal is already pending it is a no-op.

()

Source from the content-addressed store, hash-verified

4386// signalWake wakes the run loop so it calls processOnce immediately.
4387// Non-blocking: if a signal is already pending it is a no-op.
4388func (p *Server) signalWake() {
4389 select {
4390 case p.wakeCh <- struct{}{}:
4391 default:
4392 }
4393}
4394
4395func (p *Server) processOnce(ctx context.Context) {
4396 if ctx.Err() != nil {

Callers 9

CreateChatMethod · 0.95
SendMessageMethod · 0.95
EditMessageMethod · 0.95
PromoteQueuedMethod · 0.95
SubmitToolResultsMethod · 0.95
processChatMethod · 0.95
updateLastTurnSummaryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected