关闭当前Session。由Backend调用
(self, nonblock=False)
| 162 | self._on_task_command = None |
| 163 | |
| 164 | def close(self, nonblock=False): |
| 165 | """关闭当前Session。由Backend调用""" |
| 166 | if self.closed(): |
| 167 | return |
| 168 | |
| 169 | super().close() |
| 170 | |
| 171 | self._cleanup() |
| 172 | |
| 173 | def register_callback(self, callback, mutex_mode=False): |
| 174 | """ 向Session注册一个回调函数,返回回调id |
no test coverage detected