MCPcopy
hub / github.com/tornadoweb/tornado / clear_current

Method clear_current

tornado/ioloop.py:322–336  ·  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

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:

Callers 2

clear_instanceMethod · 0.80
setUpMethod · 0.80

Calls 1

_clear_currentMethod · 0.80

Tested by 1

setUpMethod · 0.64