Clears the `IOLoop` for the current thread. Intended primarily for use by test frameworks in between tests. .. versionchanged:: 5.0 This method also clears the current `asyncio` event loop. .. deprecated:: 6.2
()
| 306 | |
| 307 | @staticmethod |
| 308 | def clear_current() -> None: |
| 309 | """Clears the `IOLoop` for the current thread. |
| 310 | |
| 311 | Intended primarily for use by test frameworks in between tests. |
| 312 | |
| 313 | .. versionchanged:: 5.0 |
| 314 | This method also clears the current `asyncio` event loop. |
| 315 | .. deprecated:: 6.2 |
| 316 | """ |
| 317 | warnings.warn( |
| 318 | "clear_current is deprecated", |
| 319 | DeprecationWarning, |
| 320 | stacklevel=2, |
| 321 | ) |
| 322 | IOLoop._clear_current() |
| 323 | |
| 324 | @staticmethod |
| 325 | def _clear_current() -> None: |