MarkAsWaiting hints that the thread reached a stable state and is waiting for requests or shutdown
(isWaiting bool)
| 195 | |
| 196 | // MarkAsWaiting hints that the thread reached a stable state and is waiting for requests or shutdown |
| 197 | func (ts *ThreadState) MarkAsWaiting(isWaiting bool) { |
| 198 | if isWaiting { |
| 199 | ts.waitingSince.Store(time.Now().UnixMilli()) |
| 200 | } else { |
| 201 | ts.waitingSince.Store(0) |
| 202 | } |
| 203 | } |
| 204 | |
| 205 | // IsInWaitingState returns true if a thread is waiting for a request or shutdown |
| 206 | func (ts *ThreadState) IsInWaitingState() bool { |
no outgoing calls
no test coverage detected