The handler of coroutine task See also: `run_async() `
| 247 | |
| 248 | |
| 249 | class TaskHandler: |
| 250 | """The handler of coroutine task |
| 251 | |
| 252 | See also: `run_async() <pywebio.session.run_async>` |
| 253 | """ |
| 254 | |
| 255 | def __init__(self, close, closed): |
| 256 | self._close = close |
| 257 | self._closed = closed |
| 258 | |
| 259 | def close(self): |
| 260 | """Close the coroutine task.""" |
| 261 | return self._close() |
| 262 | |
| 263 | def closed(self) -> bool: |
| 264 | """Returns a bool stating whether the coroutine task is closed. """ |
| 265 | return self._closed() |
| 266 | |
| 267 | |
| 268 | class Task: |
no outgoing calls
no test coverage detected
searching dependent graphs…