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

Method Purge

dev/app.go:620–641  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

618}
619
620func (a *AppPool) Purge() {
621 a.lock.Lock()
622
623 var apps []*App
624
625 for _, app := range a.apps {
626 apps = append(apps, app)
627 }
628
629 a.lock.Unlock()
630
631 for _, app := range apps {
632 app.eventAdd("purging_app")
633 app.t.Kill(nil)
634 }
635
636 for _, app := range apps {
637 app.t.Wait()
638 }
639
640 a.Events.Add("apps_purged")
641}

Callers 2

mainFunction · 0.95
mainFunction · 0.95

Calls 3

eventAddMethod · 0.80
KillMethod · 0.80
AddMethod · 0.80

Tested by

no test coverage detected