()
| 17 | } |
| 18 | |
| 19 | func Close() { |
| 20 | module_map.Range(func(k interface{}, m interface{}) bool { |
| 21 | m.(ModuleWoker).Close() |
| 22 | return true |
| 23 | }) |
| 24 | |
| 25 | worker_pools_map.Range(func(k interface{}, m interface{}) bool { |
| 26 | m.(*ModuleWorkerPool).Close() |
| 27 | return true |
| 28 | }) |
| 29 | |
| 30 | wait_close.Wait() |
| 31 | } |
| 32 | |
| 33 | func NewModule(name string) Module { |
| 34 | m := &module{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…