MCPcopy Create free account
hub / github.com/RTradeLtd/Lens / Close

Method Close

engine/engine.go:230–239  ·  view source on GitHub ↗

Close shuts down the engine

()

Source from the content-addressed store, hash-verified

228
229// Close shuts down the engine
230func (e *Engine) Close() {
231 e.stop <- true
232
233 // TODO: better way to kill all goroutines, to prevent logs from writing
234 // to test logger after test ends, which cases panic and race
235 time.Sleep(time.Millisecond)
236 for !e.q.IsStopped() {
237 time.Sleep(time.Second)
238 }
239}

Callers

nothing calls this directly

Calls 1

IsStoppedMethod · 0.80

Tested by

no test coverage detected