EXPERIMENTAL: DrainWorkers initiates a graceful drain of all worker scripts. Blocks until every drained thread yields. Force-kill is armed after a grace period to wake threads parked in blocking syscalls (sleep, I/O).
()
| 172 | // Blocks until every drained thread yields. Force-kill is armed after a |
| 173 | // grace period to wake threads parked in blocking syscalls (sleep, I/O). |
| 174 | func DrainWorkers() { |
| 175 | _ = drainWorkerThreads() |
| 176 | } |
| 177 | |
| 178 | func drainWorkerThreads() (drainedThreads []*phpThread) { |
| 179 | var ready sync.WaitGroup |
nothing calls this directly
no test coverage detected