MCPcopy
hub / github.com/docker/docker-agent / IsStarted

Method IsStarted

pkg/tools/startable.go:107–111  ·  view source on GitHub ↗

IsStarted returns whether the toolset has been successfully started. For toolsets that don't implement Startable, this always returns true.

()

Source from the content-addressed store, hash-verified

105// IsStarted returns whether the toolset has been successfully started.
106// For toolsets that don't implement Startable, this always returns true.
107func (s *StartableToolSet) IsStarted() bool {
108 s.mu.Lock()
109 defer s.mu.Unlock()
110 return s.started
111}
112
113// Start starts the toolset with single-flight semantics.
114// Concurrent callers block until the start attempt completes.

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45