(DbConnection conn, CancellationToken ct)
| 191 | |
| 192 | /// Our separate thread from main, where we can call process updates and process commands without blocking the main thread. |
| 193 | void ProcessThread(DbConnection conn, CancellationToken ct) |
| 194 | { |
| 195 | try |
| 196 | { |
| 197 | // loop until cancellation token |
| 198 | while (!ct.IsCancellationRequested) |
| 199 | { |
| 200 | conn.FrameTick(); |
| 201 | |
| 202 | ProcessCommands(conn.Reducers); |
| 203 | |
| 204 | Thread.Sleep(100); |
| 205 | } |
| 206 | } |
| 207 | finally |
| 208 | { |
| 209 | conn.Disconnect(); |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | /// Read each line of standard input, and either set our name or send a message as appropriate. |
| 214 | void InputLoop() |
no test coverage detected
searching dependent graphs…