MCPcopy Create free account
hub / github.com/EasyIME/PIME / clear_current

Method clear_current

python/python3/tornado/ioloop.py:308–322  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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:

Callers 3

tearDownMethod · 0.80
clear_instanceMethod · 0.80
setUpMethod · 0.80

Calls 2

warnMethod · 0.80
_clear_currentMethod · 0.80

Tested by 2

tearDownMethod · 0.64
setUpMethod · 0.64