MCPcopy Index your code
hub / github.com/docker/docker-agent / enqueueOrRun

Method enqueueOrRun

pkg/leantui/update.go:253–262  ·  view source on GitHub ↗

enqueueOrRun starts a run immediately when idle, or queues the message to run after the current response finishes.

(ctx context.Context, message string)

Source from the content-addressed store, hash-verified

251// enqueueOrRun starts a run immediately when idle, or queues the message to run
252// after the current response finishes.
253func (m *model) enqueueOrRun(ctx context.Context, message string) {
254 if m.app.IsReadOnly() {
255 return
256 }
257 if m.busy {
258 m.queue = append(m.queue, message)
259 return
260 }
261 m.startRun(ctx, message, nil)
262}
263
264func (m *model) sendFirstMessage(ctx context.Context, msg, attachPath string) {
265 var atts []messages.Attachment

Callers 2

submitMethod · 0.95
handleSlashMethod · 0.95

Calls 2

startRunMethod · 0.95
IsReadOnlyMethod · 0.80

Tested by

no test coverage detected