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

Function NewInMemoryMessageQueue

pkg/runtime/message_queue.go:53–55  ·  view source on GitHub ↗

NewInMemoryMessageQueue creates a MessageQueue backed by a buffered channel with the given capacity.

(capacity int)

Source from the content-addressed store, hash-verified

51// NewInMemoryMessageQueue creates a MessageQueue backed by a buffered channel
52// with the given capacity.
53func NewInMemoryMessageQueue(capacity int) MessageQueue {
54 return &inMemoryMessageQueue{ch: make(chan QueuedMessage, capacity)}
55}
56
57func (q *inMemoryMessageQueue) Enqueue(_ context.Context, msg QueuedMessage) bool {
58 select {

Callers 1

NewLocalRuntimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected