Intended for test usage. Updates to callback function aren't synchronized
(collectionCallback CollectionCallbackFunc, databaseComplete func(dbName string))
| 167 | |
| 168 | // Intended for test usage. Updates to callback function aren't synchronized |
| 169 | func (m *DatabaseInitManager) SetTestCallbacks(collectionCallback CollectionCallbackFunc, databaseComplete func(dbName string)) { |
| 170 | m.testCollectionStatusUpdateCallback = collectionCallback |
| 171 | m.testDatabaseCompleteCallback = databaseComplete |
| 172 | } |
| 173 | |
| 174 | func (m *DatabaseInitManager) Cancel(dbName string, reason string) { |
| 175 | m.workersLock.Lock() |
no outgoing calls