IsStarted returns whether the toolset has been successfully started. For toolsets that don't implement Startable, this always returns true.
()
| 105 | // IsStarted returns whether the toolset has been successfully started. |
| 106 | // For toolsets that don't implement Startable, this always returns true. |
| 107 | func (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. |