MCPcopy
hub / github.com/dosco/graphjin / Close

Method Close

core/api.go:305–313  ·  view source on GitHub ↗

Close stops GraphJin background tasks. It is safe to call multiple times.

()

Source from the content-addressed store, hash-verified

303
304// Close stops GraphJin background tasks. It is safe to call multiple times.
305func (g *GraphJin) Close() {
306 if g == nil || g.done == nil {
307 return
308 }
309
310 g.stopOnce.Do(func() {
311 close(g.done)
312 })
313}
314
315// newGraphJinWithDBInfo creates the GraphJin struct, this involves querying the database to learn its
316// it all starts here

Calls 1

closeFunction · 0.85