Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
77
func
(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
84
func
(mdb *db) Close() error {
Callers
1
CreateDB
Method · 0.80
Calls
2
Lock
Method · 0.65
Unlock
Method · 0.65
Tested by
no test coverage detected