MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / Shutdown

Method Shutdown

kayak/runtime.go:266–279  ·  view source on GitHub ↗

Shutdown waits for the Runtime to stop.

()

Source from the content-addressed store, hash-verified

264
265// Shutdown waits for the Runtime to stop.
266func (r *Runtime) Shutdown() (err error) {
267 if !atomic.CompareAndSwapUint32(&r.started, 1, 2) {
268 return
269 }
270
271 select {
272 case <-r.stopCh:
273 default:
274 close(r.stopCh)
275 }
276 r.wg.Wait()
277
278 return
279}
280
281// Apply defines entry for Leader node.
282func (r *Runtime) Apply(ctx context.Context, req interface{}) (result interface{}, logIndex uint64, err error) {

Callers 2

TestRuntimeFunction · 0.95
BenchmarkRuntimeFunction · 0.95

Calls 1

WaitMethod · 0.80

Tested by 2

TestRuntimeFunction · 0.76
BenchmarkRuntimeFunction · 0.76