MCPcopy
hub / github.com/puma/puma-dev / remove

Method remove

dev/app.go:595–609  ·  view source on GitHub ↗
(app *App)

Source from the content-addressed store, hash-verified

593}
594
595func (a *AppPool) remove(app *App) {
596 a.lock.Lock()
597 defer a.lock.Unlock()
598
599 // Find all instance references so aliases are removed too
600 for name, candidate := range a.apps {
601 if candidate == app {
602 delete(a.apps, name)
603 }
604 }
605
606 if a.AppClosed != nil {
607 a.AppClosed(app)
608 }
609}
610
611func (a *AppPool) ForApps(f func(*App)) {
612 a.lock.Lock()

Callers 11

KillMethod · 0.80
watchMethod · 0.80
jquery.jsFile · 0.80
removeElementFunction · 0.80
clearMenusFunction · 0.80
bootstrap.jsFile · 0.80
cFunction · 0.80
bFunction · 0.80
bootstrap.min.jsFile · 0.80
scrollPageFunction · 0.80
classie.jsFile · 0.80

Calls 1

AppClosedMethod · 0.80

Tested by

no test coverage detected