GetLoadingCount returns the number of models currently being loaded
()
| 102 | |
| 103 | // GetLoadingCount returns the number of models currently being loaded |
| 104 | func (ml *ModelLoader) GetLoadingCount() int { |
| 105 | ml.mu.Lock() |
| 106 | defer ml.mu.Unlock() |
| 107 | return len(ml.loading) |
| 108 | } |
| 109 | |
| 110 | // OnModelUnload registers a hook that is called when a model is unloaded. |
| 111 | func (ml *ModelLoader) OnModelUnload(hook ModelUnloadHook) { |
no test coverage detected