()
| 129 | } |
| 130 | |
| 131 | func (executor *SimpleTaskExecutor) IsShutdown() bool { |
| 132 | executor.executorMu.Lock() |
| 133 | defer executor.executorMu.Unlock() |
| 134 | return executor.isShutdown |
| 135 | } |
| 136 | |
| 137 | func (executor *SimpleTaskExecutor) Shutdown() chan bool { |
| 138 | executor.executorMu.Lock() |
no outgoing calls