MCPcopy Create free account
hub / github.com/temporalio/temporal / OnClose

Method OnClose

common/persistence/sql/sqlplugin/sqlite/db.go:77–81  ·  view source on GitHub ↗
(hook func())

Source from the content-addressed store, hash-verified

75}
76
77func (mdb *db) OnClose(hook func()) {
78 mdb.mu.Lock()
79 mdb.onClose = append(mdb.onClose, hook)
80 mdb.mu.Unlock()
81}
82
83// Close closes the connection to the sqlite db
84func (mdb *db) Close() error {

Callers 1

CreateDBMethod · 0.80

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected