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
()
| 320 | |
| 321 | @staticmethod |
| 322 | def clear_current() -> None: |
| 323 | """Clears the `IOLoop` for the current thread. |
| 324 | |
| 325 | Intended primarily for use by test frameworks in between tests. |
| 326 | |
| 327 | .. versionchanged:: 5.0 |
| 328 | This method also clears the current `asyncio` event loop. |
| 329 | .. deprecated:: 6.2 |
| 330 | """ |
| 331 | warnings.warn( |
| 332 | "clear_current is deprecated", |
| 333 | DeprecationWarning, |
| 334 | stacklevel=2, |
| 335 | ) |
| 336 | IOLoop._clear_current() |
| 337 | |
| 338 | @staticmethod |
| 339 | def _clear_current() -> None: |